- "The rising sun will eventually set
A newborn's life will fade.
From sun to moon, moon to sun...
Give peaceful rest to the living dead."
- — Royal Family's Tomb inscription
The "Sun's Song" is a song from The Legend of Zelda: Ocarina of Time. Composed by the royal Composer Brothers, Flat and Sharp, the song's main purpose is to change night to day, and day to night. Additionally, the song temporarily stuns ReDeads and Gibdos when played near one. Furthermore, at some spots that Navi will fly to and turn green without allowing Link to Z-target, the song can be played to summon a Big Fairy. A variation of the song is heard when dawn breaks in Hyrule Field and certain other areas. The notes to the song also usually accompany mornings in other games in the series, like the dawn of the First Day in Clock Town in The Legend of Zelda: Majora's Mask and the morning sunrise on the Great Sea in The Legend of Zelda: The Wind Waker, as well as in Hyrule Field in The Legend of Zelda: Twilight Princess.
The "Sun's Song" is useful for events that require waiting or the opposite time of day from the current time. For example, when Biggoron tells Link to wait three to four days during the trading quest for Biggoron's Sword, the "Sun's Song" can be played six to eight times to make the time pass almost instantaneously; usually, this works only after the song's effects have completed a full transition between night and day. The Sun's Song is not required to complete the game.
The meter of this song is 6/8 time. Link can play the "Sun's Song" by playing Right-C, Down-C, Up-C, Right Down-C, Up-C on his Ocarina. In the 3DS remake of Ocarina of Time, the notes can be played with Y, R, A, Y, R, A. The actual pitches of the notes translate as follows: A, F, high D, A, F, high D.
Link first hears of the "Sun's Song" from the Composer Brothers, who both haunt their respective gravestone in the Kakariko Graveyard. They tell him of its conception and purpose, and that the notes were inscribed onto the sealed door leading to the crypt of the Royal Family. The Composer Brothers reveal they died to prevent the Sun's Song from falling into the hands of Ganondorf (and became Poes in order to protect its location even in death)). Link opens the way to the Royal Family's Tomb by playing "Zelda's Lullaby" while standing atop a Triforce emblem and enters the tomb. He passes the small tests therein and dodges the ReDeads, and finds the tomb door. When Link plays the song, all ReDeads in the area are stunned for a short while, making his escape from the tomb much easier.
The Song of Passing uses the same notes as the Sun's Song, but the three-note melody is played only once, while it is repeated twice in the Sun's Song. Also, when morning comes on the Great Sea, the first notes that Link hears are those of the Sun's Song.
A similar fanfare plays when morning breaks in Hyrule Field.
A variation on the "Sun's Song" is also heard in the "Ocarina of Time Medley" in Super Smash Bros. Brawl, along with "Zelda's Lullaby", the "Minuet of Forest", the "Bolero of Fire", the "Song of Storms", "Epona's Song", the "Song of Time", and "Saria's Song".
Ganondorf reasons for wanting the Sun's Song are unknown (although it is likely he had some evil purpose in mind). One possibility is he was not after the song itself (possibly due to its being developed in secret while studying the mystical powers of the Royal Family and the Triforce) and assumed it to be part of their research on the Triforce (which Ganondorf coveted). However it is also possible that he may have desired it in order to plunge the world into an Endless Night or simply give him power to control day and night. He also may have assumed in their research the composer brother had accidental stumbled upon the Song of Time (which was required to open the Door of Time) and was unaware of the creation of the Sun's Song due to the composer brothers' secrecy.