Agahnim

"Oh, so?... You mean to say you would like to be totally destroyed? Well, I can make your wish come true!"

- Agahnim

Agahnim is the main antagonist for the first part of The Legend of Zelda: A Link to the Past. He is an evil sorcerer who plans to open a gate between Hyrule and the Dark World by using the seven maidens. He is actually a piece of Ganon's soul acting on his wishes.

The Legend of Zelda: A Link to the Past
Prior to the start of The Legend of Zelda: A Link to the Past, Hyrule was in chaos due to several plagues and disasters ravaging it. The mysterious wizard Agahnim appeared and made all the problems vanish with his magic; it is therefore implied that they were actually curses of his own doing. The King of Hyrule gives him the position as adviser as a reward, which Agahnim uses to kill the King and brainwash the soldiers of Hyrule Castle. He begins to capture the seven maidens, who are descended from the seven wise men of ancient times who sealed Ganon into the Sacred Realm, and begins transporting each into the Dark World (the corrupted remains of the Sacred Realm) in order to open a stable path between them for Ganon to escape from. The last of the maidens is Princess Zelda, who telepathically calls for Link and his uncle from the dungeon, starting the game.

After Link and Zelda escape, Agahnim orders the soldiers to find them and kill Link. Once Link obtains the Master Sword, Agahnim raids the Sanctuary and kidnaps Zelda from it, taking her to the upper Hyrule Castle. Once Link reaches them there, Agahnim taunts Link and warps Zelda to the Dark World, claiming that the tribe of evil will be able to overpower the hero and sword if they have the power of gold. Link chases him through a curtain into a small arena, where Agahnim taunts him some more, then begins battling.

In battle, none of Link's direct attacks affect Agahnim whatsoever. Instead, he must take advantage of Agahnim's spells. When Agahnim casts a circular ball of light, Link can send it back at him with the sword (or Bug-Catching Net), which will damage him. However, he will also cast a cluster of blue spheres which breaks into several pieces, none of which can be sent back by Link. Finally, he can shoot lightning from his hands across the field. After enough spells are deflected, Agahnim will be defeated, but send Link to the Dark World in vengeance. From here, Ganon takes the role of the main villain.

After Link has saved six maidens and reached the top of Ganon's Tower, Agahnim will appear again and engage Link in another battle. This battle works the same as the first, though he spawns transparent copies of himself, which also cast spells. Once he is defeated again, he turns into a giant teal bat and flies Link to the Pyramid of Power, where he breaks through the roof and reveals himself as Ganon.

Other appearances and references
Although Agahnim himself does not appear in later games, entities based on him do. One of the forms the Shadow Nightmares take in The Legend of Zelda: Link's Awakening is based on him and uses his spells, aside from the lightning attack. In The Legend of Zelda: Oracle of Ages, a wizard called Agunima (one letter off from Agahnim's Japanese name, Agunimu) appears and resembles him in both appearance and behavior, but is only a minor boss. Another offshoot of Ganon fought in a similar way is Phantom Ganon, which appears more often.

Appearance
In artwork, Agahnim is blue-skinned with red clothing covering most of him. These colors may be to tie him closer to Ganon's colors. In the game, however, he has olive-colored skin with green clothing. It is unclear why this discrepancy exists, though it is also worth noting that his in-game skin color is quite similar to that of Ganon's human form, Ganondorf, as he later appears.