Park Geun-hye, daughter of a divisive military strongman from South Korea's authoritarian era, has been elected the country's first female president in a landmark win that could mean a new drive to start talks with rival North Korea.
After five years of high tension under unpopular incumbent Lee Myung-bak, Ms Park has vowed to pursue engagement and step up aid to North Korea, despite the latter's widely condemned long-range rocket launch last week.
Ms Park mentioned the North Korean rocket launch during a nationally televised speech, saying: "The North's long-range missile launch symbolically showed how grave our security reality is."
Her comment came after a visit to Seoul's National Cemetery, where she paid silent tributes to late presidents, including her father.
North Korean state media, however, have repeatedly questioned the sincerity of Ms Park's North Korea engagement policy, since she and Mr Lee are from the same conservative party.
Ties between the Koreas plummeted during Mr Lee's term and many voters believe his policies drove North Korea to renew nuclear and missile tests and to launch two attacks in 2010 that killed 50 Koreans.
The rocket launch, which Ms Park's party has called a test of banned ballistic missile technology, made North Korea an issue in the closing days of campaigning, although many voters said they cared more about the economy.
Ms Park has said she is open to dialogue with North Korea, but has also called on Pyongyang to show progress in nuclear dismantlement.
She has also raised the possibility of a meeting with North Korean leader Kim Jong Un, but only if it is "an honest dialogue on issues of mutual concern".
Huge crowds lined up in frigid weather yesterday to choose between Ms Park and liberal candidate Moon Jae-in, the son of North Korean refugees. Both candidates steered away from Mr Lee's policies, including, most strikingly, his hardline stance on North Korea.
Turnout was the highest in 15 years and some analysts thought that might lift Mr Moon, who is more popular with younger voters. Despite moving to the centre, however, Ms Park was carried by her conservative base of mainly older voters.
They fondly remember her father, Park Chung-hee, dictator for 18 years until his intelligence chief killed him during a drinking party in 1979.
Much of 60-year-old Ms Park's public persona is built on her close association with her father's rule. When she was 22 her mother died in a botched attempt to assassinate her father and she stood in as first lady for five years until her father's death.
She has created an image as a selfless daughter of Korea, never married, then a female MP in a male-dominated political world.
After Mr Moon conceded defeat, Ms Park said that she would dedicate herself to uniting her people and improving their livelihoods.
"I really thank you. This election is the people's victory," she told a crowd packing a Seoul plaza.
With about 98% of votes counted, Ms Park had won 51.6% to Mr Moon's 47.9%, according to the state-run National Election Commission. She will to take office in February when Mr Lee ends his single five-year term.
No Korean woman is believed to have ruled since the ninth century.
Ms Park becomes the most powerful figure in a country where many women earn less than men and are trapped in low-paying jobs despite first-class educations.
Her father's legacy is both an asset and a weak spot.
Older South Koreans may revere his austere economic policies and tough line against North Korea, but he is also remembered with loathing for his treatment of opponents, including claims of torture and summary executions.
Ms Park's win means that South Korean voters believe she would evoke her father's strong charisma as president and settle the country's economic and security woes, according to Chung Jin-young, a political scientist at Kyung Hee University in South Korea.
"Park is good-hearted, calm and trustworthy," 50-year-old housewife Lee Hye-Young said at a polling station at a Seoul primary school.
"Also, I think Park would handle North Korea better. Moon would want to make too many concessions to North Korea."