In The Legend of Zelda: Twilight Princess, Link is transformed into a wolf when he enters the Twilight Realm. This parallel dimension spreads over parts of Hyrule and changes the people there into invisible spirits, while Link uniquely becomes Wolf Link.
The transformation happens after Link is pulled through a wall of Twilight near the start of his journey. He is captured in wolf form and meets Midna, an imp-like member of the Twili who helps him escape and explains the crisis affecting Hyrule.
Wolf Link has different abilities from his Hylian form. He cannot use his sword or shield, but he can attack with his jaws, dig to uncover passages and objects, follow scents, sense spirits, and travel with Midna’s assistance. Later, the Master Sword allows Link to change between human and wolf forms.
The Dark World is a different realm from A Link to the Past, and Termina belongs to Majora’s Mask. Those locations are common distractors, but Twilight Princess specifically uses the Twilight Realm and the Twili as the setting for Link’s wolf transformation.