Fetching details from the dictionary...

to fit; to get into; to go into; to be fitted with (e.g. door with a window)
to be fit for (a job, etc.); to be suited for; to satisfy (conditions)
to fall into; to plunge into; to get stuck; to get caught
to be deceived; to be taken in; to fall into a trap
to get addicted to; to get deep into; to become crazy about; to become stuck on
パズルのピースがぴったり嵌まった。
The puzzle piece fit perfectly.
罠に嵌まらないよう注意しなさい。
Be careful not to fall into a trap.
彼はその悪役という役に見事に嵌まっていて評判が良い。
He fits the role perfectly.