|Spoiler Alert! This article describes a subject that is sensitive to plot development.|
After defeating Ganon and returning peace to Hyrule, Princess Zelda plays the Ocarina of Time, warping Link back to the past. Young Link observes Navi departing through the window of the Temple of Time. He is subsequently seen approaching Princess Zelda in the Hyrule Castle Courtyard.
But there exists a separate continuity. In this branch, Link fails to slay Ganon. Ganon enters the Sacred Realm, transforming it into the Dark World, but the spell of the Seven Wise Men is too strong for him to break and take control of the Light World as well. This initiates the events of A Link to the Past.