Luis Urzua, 54, who was leading the shift at the time of the collapse, was the last of the miners to travel through 2,050 feet of rock to the surface in a capsule barely wider than a man's shoulders.
Celebrations erupted across the country as he emerged to a hero's welcome above the San Jose gold and copper mine in Chile's northern Atacama desert, wearing his hard-hat and dark shades to protect his eyes after spending 69 days in a dimly-lit tunnel.
Urzua beamed as an elated crowd chanted, yelled, sobbed and waved red, white and blue Chilean flags. The miners have set a new world record for survival trapped underground.
Rescue workers opened the capsule door and hugged Urzua, who had insisted throughout that he would not leave the tunnel until all the other miners were safely evacuated.
They are now all safe, thanks to a meticulously-planned rescue operation that went quicker and more smoothly than anyone dared to believe.
Now the rescue workers who traveled down the shaft to help evacuate them will themselves be winched to the surface in the metal capsule, named Phoenix after the mythical bird that rose from the ashes.
Church bells rang out in Chile when the first miner was extricated and Chileans were glued to their televisions, proud of their nation's ability to save the men in a world class rescue operation.
"This was the toughest match of my life," said Franklin Lobos, a former professional soccer player who turned to mining and driving a taxi to make ends meet, as he emerged from the mine.
The miners were whisked away for medical check ups and were found to be in good health, except for one who has pneumonia and is being treated with antibiotics.
"This is a miracle from God," said Alberto Avalos, the uncle of Florencio Avalos, a father of two who was the first to emerge shortly after midnight.
Euphoric rescuers, relatives and friends broke into cheers -- and tears -- as the miners emerged to breathe fresh air for the first time since the mine caved in on August 5.
They were all initially believed to be dead but rescue teams found the men 17 days after the collapse with a bore hole the width of a grapefruit. The tiny hole then became an umbilical cord used to pass hydration gels, water and food to keep them alive during one of the world's most ambitious rescue operations.
Their story of survival captured global attention. Some 1,500 journalists were at the mine to report on the rescue operation, which was broadcast live around the world, including dramatic live images of the miners hugging rescuers who traveled down the shaft to their refuge deep in the mine.
The flawless rescue was a big success for Chilean President Sebastian Pinera, who waited at the mouth of the shaft through the night and day to greet and hug the men as they emerged from the red, white and blue capsule -- the Chilean colors.
Pinera, a billionaire entrepreneur who took office in March, ordered an overhaul of Chile's mine safety regulations after the accident. His popularity ratings have surged and his government has won praise for its handling of the crisis.
Thirty-two of the miners are Chilean but one is from neighboring Bolivia and the rescue has helped improve ties between the two countries, locked in a bitter dispute for more than a century over Bolivia's demands for access to the Pacific.
Bolivia's President Evo Morales was at the mine to welcome the Bolivian miner, Carlos Mamani, as he was lifted to safety and he thanked Pinera and his government for rescuing him.
Chile will continue to shut old, decrepit mines after the miners' saga, but the clampdown is unlikely to hit output in the world's top copper producer, industry insiders say.
The mining industry has played a central and often tragic role in Latin American history, starting with the hunger for gold and silver that drove the Spanish conquest and led to the enslavement of indigenous peoples.