Anubis

The Anubis is a mummified, cobra-like creature that resides in the Spirit Temple in The Legend of Zelda: Ocarina of Time. Anubis only moves when the player moves and only attacks when the player attacks. Whenever the player moves, Anubis moves in the opposite direction, and whenever Anubis is attacked with the sword, it attacks back with fire.

The only way to defeat Anubis is to use fire. If Anubis is present, there will always be a fire trap in the room. You must trick Anubis to move it into the trap. However, a Fire Arrow or Din's Fire will also do the job.