Fetching details from the dictionary...
to possess (someone; of an evil spirit, idea, etc.); to take hold of; to haunt
悪霊が古い屋敷に取り憑いた。
An evil spirit possessed the old mansion.
彼には運が取り憑いているらしい。
It seems like luck has latched on to him.
幽霊はこの部屋には取り憑かないと言われている。
It is said that ghosts don't haunt this room.