Ancient Battle

The Ancient Battle is a name given to describe one of the earliest battles in Hyrule's history a short time after the creation of the world by the three Golden Goddesses. After their labors in the creation of Hyrule were completed, the Golden Goddesses (Din, Nayru, and Farore) left a symbol of their power in the hands of the Goddess known as Hylia to protect it and protect the land then known simply as the "Surface." This battle ensued when the Demon King known as Demise broke out of the depths of the earth with his armies and attempted to take this ultimate power from Hylia for himself. This battle would result in the creation of both Skyloft and the Sealed Grounds.

Creation of the World
Long ago, before spirits and life existed, the three Golden Goddesses known specifically as Din (the Goddess of Power), Nayru (the Goddess of Wisdom), and Farore (the Goddess of Courage) descended upon the chaos that was the world at that time. Din, with her strong flaming arms, created the red earth and thus was responsible for the creation of the world's geography. Nayru poured her wisdom onto the earth and gave the spirit of law to the world, thus bringing order to a formerly chaotic realm. Farore, with her rich soul, produced all forms of life that would uphold the law established by Nayru. With their labors finally completed, the three Golden Goddesses once again departed for the heavens, but not before creating a symbol of their power, the Triforce, which when mastered in its entirety and wielded by one with an unbreakable spirit would grant the heart's desire of the holder. They also specifically designed it so that it could never be used by their own kind, as a way of giving hope to the mortal beings of the world. Before departing, the Golden Goddesses left this symbol of ultimate power in the hands of a goddess named Hylia, ordering her to safeguard the relic and granting her the authority to preside over the realm.

Emergence of Demise
For an age, Hylia ruled over the then-unnamed land that was then known only as "the Surface," presiding over the various races in the world at that time (i.e. the Hylians, the Gorons, the Kikwis, the Parella, the Mogmas, and the Ancient Robots). Peace reigned during what was known as the "Era of the Goddess Hylia." However, one day there came an earthquake that cracked open the ground, opening a fissure connecting the underground to the Surface. From this fissure poured an army of demons led by their ruler, the Demon King known as Demise. Demise somehow learned of the ultimate power that Hylia guarded and sought to obtain it to rule over the entire world. To this end, he ordered his armies to kill and destroy all in their path in an attempt to take the Triforce from Hylia for his own. The armies of Demise caused many misfortunes as they burned forests and killed all in their path at the behest of their master.

Creation of Skyloft
Hylia, fearing for her people (the Hylians), gathered all the surviving Hylians on an outcropping of rock she cut away from the land around her temple that contained a giant statue of her. Using her power, Hylia raised the newly-formed Isle of the Goddess into the Sky, sending it skyward beyond even the clouds to send her people out of Demise's reach. This floating island would one day come to be known as Skyloft during the "Era of the Sky." She also created a cloud barrier to separate the realm of the Sky from the Surface and thus prevent Demise's armies from pursuing her people. In secret, Hylia also sent the Triforce into the heavens with the Hylians, concealing its three parts within the hidden Sky Keep that was located beneath the Statue of the Goddess. Through Hylia's design, the way into the Sky Keep, and thus the road to the Triforce, would open one day when her chosen hero would come in need of it. She also secretly enshrined her sword inside the Statue of the Goddess to await the coming of her chosen hero. Her personal harp was also sent away with Skyloft to be used again one day when the need would arise.

The Goddess vs. The Demon King
Once her people and the Triforce were safely beyond Demise's reach, the Goddess Hylia joined forces with the remaining races dwelling on the Surface and entered into a fierce battle with Demise and his army of demons. It was said that Hylia had a chosen hero during this time that served and protected her from harm, and that she gave him her personal Sailcloth as a sign of honor. Though what truly happened to her chosen hero is unknown, his existence would continue to be known long after the end of his lifespan. After a long and bloody battle, Hylia succeeded in subduing Demise, driving him into a prison in the former location of the Statue of the Goddess from whence Skyloft was taken. She cast him into this prison and placed a great seal on it meant to keep him locked away where he could do no further harm to the Surface or its inhabitants. With Demise locked away, the battle for control of the Surface was seemingly won and what remained of his armies were left scattered and dispersed across the land. Stripped of his true physical form due to the seal that now bound him, Demise was forced into the form of an abomination capable of great destruction should he ever escape from his new prison beneath what was to be known as the "Sealed Grounds" in the future.

Passing of Hylia
The Goddess Hylia had sustained grave injuries in her battle with Demise, and although he was now locked away beneath her realm, she knew the seal that bound him would not hold long against his great power. She knew that if Demise freed himself from his prison, there would be no stopping him again from destroying the world and taking it for his own. In this knowledge, Hylia set two plans into motion to put an end to the Demon King for good and all in the future. First, before having sent it into the sky along with her people, Hylia created a sword spirit named Fi to be bound to the Goddess Sword that was now enshrined within the Statue of the Goddess. The Goddess created Fi specifically to assist her chosen hero on his journey to defend and save her in the future, when the time would come that the seal could no longer contain Demise. Secondly, Hylia, having such grievous injuries and knowing that the might of the Triforce was her last best hope to put an end to the Demon King, decided to give up her immortal form and her divine powers so that her soul could be reborn as a mortal sometime in the distant future alongside her chosen hero. She made this sacrifice so that the Triforce could be put to use one day, since the gods of old had designed the relic so that not even one of their own could wield its might.

Before voluntarily passing from the world, Hylia appointed a guardian dragon to watch over each of the three provinces of the Surface: Faron (the Water Dragon) to watch over the forest, Eldin (the Fire Dragon) to watch over the mountains, and Lanayru (the Thunder Dragon) to watch over the desert. She also appointed the great sky spirit Levias as warden of the skies. The Goddess took the song that would open the way to the Sky Keep (and thus the Triforce) and divided it into four sections, entrusting one of each to the dragons and Levias respectively so that they in turn could pass on their individual parts of the song to her chosen hero one day. She also took all of her memories of her life as a goddess and stored them within two separate statues kept within two springs on the Surface, so that her reborn form could regain these memories in the future. The Goddess also created two powerful artifacts in the two Gates of Time, a pair of magical gates capable of opening a doorway to the time when she had just sealed Demise away. These two gates, located in the Temple of Time and the Temple of Hylia respectively, would be instrumental to the Goddess's reborn form and her chosen hero in the plan to rid the world of Demise. With this, the Goddess Hylia took leave of the world which she had protected since its inception.

Aftermath
Thousands of years after the end of Hylia's battle with Demise and the Goddess's passing from the world, the Goddess Hylia was still known to the people of Skyloft, who had by and large forgotten the memory of the Surface that still existed beneath the clouds, its existence, like Hylia's, now mere legend. The people of Skyloft continued to believe that Hylia watched over and protected them from afar, unaware that she had actually been reborn and was living amongst them. The Goddess was reborn as the first incarnation of Zelda, daughter of Gaepora (Headmaster of the Skyloft Knight Academy) and best childhood friend to Link, the reincarnation of her chosen hero from ancient times. She would also come into possession of Hylia's harp from her father. It was at this time that the sword spirit tied to Demise's Sword, Ghirahim, enacted a scheme to seize possession of Zelda and use her (Hylia's) divine soul to break the seal placed on his master. The Demon Lord would go on to create a tornado to cause Zelda/Hylia to fall from the Sky and down to the Surface, where he could seize her. Link would go on to discover the Goddess Sword inside the Statue of the Goddess and, together with Fi, would pursue Zelda, who evaded Ghirahim's grasp with the help of Impa, a Sheikah servant of Hylia.

Link would pursue Zelda across the Surface as she set out to find the two statues left behind by her former self, so as to regain her memories of her life as Hylia. Eventually, Link would be briefly reunited with Zelda and a younger Impa at the first Gate of Time in the Lanayru Desert's Temple of Time. However, this reunion would be cut short as Ghirahim burst in on the reunion and attempted to snatch Zelda. Zelda transferred the Goddess's Harp to Link and fled with Impa through the Gate of Time, which was destroyed upon their departure to prevent Ghirahim from following. Link would go on to learn of the existence of the second Gate of Time in the Sealed Temple and would go on to reforge the Goddess Sword into the Master Sword by means of the three Sacred Flames hidden across the land to reactivate the dormant Gate of Time. At various times, Link was forced to beat Demise (in the form of the Imprisoned) back into confinement as he continually broke free of the seal keeping him locked at the bottom of the Sealed Grounds.

Eventually, Link succeeded in reactivating the second Gate of Time and journeyed to the past to meet with Zelda, who revealed her identity as Hylia and gave a final blessing to the Master Sword to grant it the Power to Repel Evil before entering an age-long sleep inside the Temple of Hylia to keep Demise's seal strong for as long as possible. In order for her to be able to wake up in their own time, Link was tasked with finding the Triforce and using its might to wish for the destruction of Demise, as he was one of the few who possessed an unbreakable spirit required to wield its full power. Link eventually succeeded in this endeavor, learning the four parts of the Song of the Hero from the dragons and Levias and opening the Sky Keep. Upon finding and wishing upon the Triforce for the destruction of the Demon King, the Isle of the Goddess broke away from the rest of Skyloft and returned to its original place in the Sealed Grounds, crushing the Imprisoned into oblivion.

Though Demise was vanquished in the present and Zelda awoke from her ancient slumber, an enraged Ghirahim seized her and took advantage of the Gate of Time to attempt to revive Demise in the past. Although Link succeeded in defeating Ghirahim and his hordes, the revival was complete as the Imprisoned swallowed Zelda's/Hylia's soul and returned to his original form as the Demon King Demise. Impressed by Link's bravery, Demise offered Link the chance to battle him for the fate of the world and Hylia's soul, only to be defeated by the Hero wielding the Master Sword. In his dying throes, the Demon King used the last of his power to place an eternal curse upon Link, Zelda, and their successors, stating that his hatred would be reborn as a being in the future and would forever pursue them so they would never fully know peace. Upon laying the Master Sword to rest in the Temple of Hylia and returning to their original time, Link and Zelda greeted the citizens of Skyloft, who began to take their first steps onto the Surface. It is implied that Link and Zelda would go on to found the kingdom of Hyrule on the Surface, and the Royal Family of Hyrule would descend from Zelda, deriving their right to rule the land as the descendants of the Goddess Hylia.