- "Thousands of years ago, there came a night that lasted a generation. Kings froze to death in their castles, same as the shepherds in their huts; and women smothered their babies rather than see them starve, and wept, and felt the tears freeze on their cheeks... In that darkness the White Walkers came for the first time. They swept through cities and kingdoms, riding their dead horses, hunting with their packs of pale spiders big as hounds."
- ―Old Nan to Bran Stark
Eight thousand years before the Targaryen Conquest, a winter known as the Long Night descended upon the world, which lasted an entire generation. Thousands starved as the crops and fields lay buried under dozens of feet of snow. In the darkness and cold of the Long Night, the White Walkers descended upon Westeros from the farthest north, the polar regions of the Lands of Always Winter. The conflict that arose from the Long Night is known as the War for the Dawn as the White Walkers sought to bring an end to all life and to cover the world in an endless winter.
The invasion of Westeros by the First Men and their encroachment into the lands of the Children of the Forest, the natives of Westeros, led to a long period of warfare between the two people for control of the continent. During this period, a group of Children captured several of the First Men and experimented on them, creating the first White Walkers, the first becoming known as the Night King, whose purpose was to protect the Children from the First Men. However, the White Walkers broke free of the Children's control and became a threat to anyone living, becoming the most feared creatures in the known world. Eventually, the period of war ended and the Children and the First Men reached a peace known as the Pact.
The War for the Dawn
None knew why the White Walkers came when they did, 2,000 years after the signing of the Pact and 8,000 years before Robert's Rebellion, but they killed all in their path. The White Walkers reanimated the dead as Wights to kill the living at their command, and soon the White Walkers and their hordes of undead were sweeping across the continent.
Eventually the First Men and the Children of the Forest formed an alliance and rallied to defend themselves. In a struggle known as the War for the Dawn, the White Walkers were defeated and driven back into the uttermost north, where the far northern lands became known as the Lands of Always Winter.
The Wall, a massive fortification standing seven hundred feet high and stretching from one side of the continent to the other, was constructed by the First Men, Children, and giants along the northernmost isthmus of northern Westeros to bar the Walkers' return. Legend says that the Wall was infused with powerful magic spells by the Children of the Forest that prevent the White Walkers from crossing it. The ancient order of the Night's Watch was founded to defend the Wall should the White Walkers return to invade the realms of men once more.
In the present day, most believe that the Long Night is just a children's story, and that the White Walkers, Children of the Forest, and giants are nothing more than legends. Even the few who believe they did once exist think they went extinct thousands of years ago. Certainly, none or very few were seen for the next eight thousand years between their supposed defeat and the time of Robert's Rebellion.
As the War of the Five Kings begins, disturbing reports have come back from the scouts of the Night's Watch that, along with winter coming after an abnormally long summer, the White Walkers have begun to return. There is a danger of another Long Night, but given that the great lords of Westeros are short-sightedly more concerned with fighting each other for control of the realm, most have simply ignored the warnings of the Night's Watch, to focus on their civil war. The situation leaves only the under-supported and under-manned Night's Watch to stand between the White Walkers and the realms of men.
After Catelyn Stark leaves for King's Landing, Old Nan sits by Bran Stark’s bedside to watch him. She suggests the story of Duncan the Tall and Bran replies that he hates her stories —he prefers the scary ones. She retorts that he is a "sweet summer child" who knows nothing about fear, and tells him that fear is for the winter and for the Long Night, a winter season thousands of years ago that lasted a generation, in which those who didn't freeze to death had to face the White Walkers, who ventured south for the first time and swept through Westeros."
During Stannis Baratheon's march to Winterfell, the weather turns for the worse and a snow storm delays his army. In order to better their chances of winning the upcoming battle in the snow which they both saw in the flames, Melisandre tries to convince Stannis to sacrifice more King's blood —this time, Stannis' own daughter, Shireen. Stannis is visibly shocked and disgusted by the suggestion, asking her if she has lost her mind. She insists that Stannis must be the undisputed king when the the Long Night comes, but he rebuffs her and orders her to leave his presence."
When Lord Commander Jon Snow and the wildling envoy Tormund travel to Hardhome to convince the Free Folk sheltered there to come back with them to Castle Black in order to settle south of the Wall, Jon Snow argues that the Long Night is coming and the dead come with it —and only together they can give the White Walkers a fight, and maybe even beat them back. Snow's words prove immediately prophetic, as during the process of taking the wildlings to the ships the White Walkers arrive with thousands of wights and massacre most of the Free Folk.
While autopsying the body of Maester Weyland, Archmaester Ebrose tells Samwell Tarly that despite the widespread skepticism of his colleagues, Ebrose believes that the Long Night cannot be pure fabrication, since numerous unconnected sources all describe similar events. He maintains however, that if another, similar event is about to occur, that Westeros and its inhabitants will find a way to survive it.
In the books
As of the fifth novel in the A Song of Ice and Fire series, A Dance with Dragons, very little detail has been given about what actually happened in the War for the Dawn. Written history doesn't date back that far (at least in Westeros), so only oral tradition and half-mythical accounts come down to the present. There are vague legends that a single First Man- whom Old Nan refers to in her stories as "the last hero"- unified both the First Men and the Children of the Forest and led them to victory.
Stories about the Long Night are also found in lands far beyond Westeros, though they may not always refer to it as such. The World of Ice and Fire sourcebook explained that several cultures throughout the continent of Essos have their own legends of ancient cataclysms, all of which (supposedly) occurred around the same time as the generation-long winter. Also in these legends, the ways in which the Long Night was overcome all follow similar patterns to what is told in Westeros:
- Descendants of the Rhoynar people - who inhabited the regions of the modern-day Free Cities - claim that the mighty Rhoyne River froze as far south as one of its tributaries, the Selhoru (roughly where Myr and Tyrosh now lie), a claim which the maesters have confirmed with reasonable certainty. The Rhoynar believed that the Long Night only ended when a single hero beseeched Mother Rhoyne, the goddess of the river, along with the minor deities that were her children, to join together and sing a magical song which brought back the dawn.
- In Yi Ti, it is said the Lion of Night - the primary god worshiped in the region - fathered a son on the Maiden-Made-of-Light. Known as God-on-Earth, he was the first emperor of Yi Ti's Great Empire of the Dawn (a semi-mythical civilization that allegedly existed during the Dawn Age before the Long Night). Thousands of years later, a descendant of God-on-Earth known as the Amethyst Empress was usurped and murdered by her own brother, an event known as the Blood Betrayal. This caused the Maiden-Made-of-Light to turn away from humanity in shame, and the Lion of Night came forth in all his wrath to punish mankind's wickedness, inflicting the cold and darkness of the Long Night. According to the stories, the sun hid its face from the world for a lifetime, ashamed at something none could discover, and disaster was only averted by the deeds of a woman with a monkey's tail.
- Stories about the Long Night are even found as far east as Asshai. According to Melisandre, a great darkness descended upon the land, and a hero known as Azor Ahai wielded a flaming sword named Lightbringer in battle against the darkness to win back the dawn. The holy texts of the Lord of Light prophesy that there will come a time when the Long Night will return, and Azor Ahai will be reborn to lead the people of the world to victory once again. This specific legend is apparently widespread across the Further East of Essos, because Azor Ahai is also known as Hyrkoon the Hero, Yin Tar, Neferion, and Eldric Shadowchaser, depending on the region in which the story is told.