Upon obtaining the final stone, Link travels to Hyrule Castle only to discover Zelda escaping from the castle with her nursemaid Impa. She manages to throw the Ocarina of Time into the castle town's moat before disappearing out of sight. While Ganondorf chases after them on his horse, Link opens the door to the Sacred Realm. However, Link is considered by Rauru to be too young to wield the Master Sword, and is therefore sealed within the Chamber of Sages in the center of the Sacred Realm for seven years. Seeing his chance, Ganondorf manages to get his hands on the sacred Triforce. However, due to the lack of balance of wisdom, courage, and power in Ganondorf, it broke into its three component parts (power, wisdom, courage) in his hands. Ganondorf kept the Triforce of Power, dearest to his heart, and the Triforces of Wisdom and Courage are given to Zelda and Link, who were "chosen by fate".
Link awakens seven years later to find Hyrule in ruin. Ganondorf, while not attaining ultimate power from the Triforce, has used the Triforce of Power to destroy the once bountiful land of Hyrule and crown himself King of Evil. Link is given the task to awaken the six sages in order to enter Ganon's Castle and defeat Ganondorf. After receiving the first of the Six Medallions, Link meets Sheik, seemingly a descendant of the mysterious Sheikah race. Sheik gives him advice, in a mysterious fashion, throughout his quest. After awakening the five other sages, Link meets Sheik again in the Temple of Time, where she is revealed to be Princess Zelda in disguise. After Zelda explains her story to Link and gives him the Light Arrows, Ganondorf interrupts and imprisons Zelda in a crystal cage. He then challenges Link to meet him in his castle. Link battles Ganondorf, and ultimately defeats him, allowing Zelda and the other Six Sages to seal him away.