The ending is broken into three parts. Link defeats Ganon and touches the Triforce after it speaks to him, restoring the Sacred Realm. We see various people across Hyrule Link met on his journey, and lastly see the closing credits played over footage of the newly-restored Sacred Realm. The credits end by stating how many lives it took you to complete certain dungeons, and close out with a "total games played" message, staying how many lives you took total to beat the game on your file.
If you leave the "start" screen alone, a cut scene plays revealing the backstory of the game.