The leaders of North and South Korea agreed on Friday to pursue a permanent peace treaty and the complete denuclearisation of their divided peninsula at a historic summit laden with symbolism.
The North's leader Kim Jong Un and the South's President Moon Jae-in embraced after signing what they called the Panmunjom Declaration, following a day that began with an emotional handshake over the Military Demarcation Line that splits their countries.
The pair issued a statement confirming their "common goal of realising, through complete denuclearisation, a nuclear-free Korean peninsula".
They agreed they would seek a permanent end to the Korean War this year, 65 years after hostilities ended in an armistice rather than a peace treaty.
Moon would visit Pyongyang in "the fall", the two leaders said, pledging to hold "regular meetings and direct telephone conversations".
But Kim did not mention denuclearisation and analysts warned that while the summit was a good first step, similar promises had been made before and much remained to be done to resolve the issue of the North's atomic arsenal.
In coming weeks, Kim is due to hold a much-anticipated meeting with US President Donald Trump -- who has demanded Pyongyang give up its weapons -- that will be crucial in shaping progress.
Trump hailed the Korea summit as historic, but warned "only time will tell".
He told reporters he would not be "played" by the North's leader at their upcoming meeting, with "two countries" now in the running to host the summit.
Trump also implicitly claimed credit for the Korean meeting, tweeting: "KOREAN WAR TO END! The United States, and all of its GREAT people, should be very proud of what is now taking place in Korea!"
But he also offered a nod to his "good friend", Chinese President Xi Jinping, who had provided "great help".
- 'Filled with emotion' -
The Panmunjom Declaration capped an extraordinary day, unthinkable only months ago as the nuclear-armed North carried out a series of missile launches and its sixth atomic blast.
Kim and Trump had traded personal insults and threats of war, sending tensions soaring before Moon seized on the Winter Olympics to broker dialogue, beginning a dizzying whirl of diplomacy that led to Friday's meeting in the Demilitarized Zone.
Kim said he was "filled with emotion" after stepping over the concrete blocks that mark the border, making him the first Northern leader to set foot in the South since the Korean War ceasefire in 1953.
At his impromptu invitation, the two men briefly crossed hand-in-hand into the North before beginning the summit, only the third of its kind.
During another symbolic gesture, the two men took part in the ceremonial planting of a pine tree.
It was a far cry from the last tree-related operation Moon was on duty for in the DMZ -- a monumental show of force after North Korean soldiers killed two US officers trying to prune a poplar in 1976, when he was a special forces soldier.
- 'Heart-wrenching division' -
The truce village of Panmunjom was the "symbol of heart-wrenching division", Kim said, but if it became "a symbol of peace, the North and South that have one blood, one language, one history and one culture, will return to becoming one".
He pledged the two Koreas would ensure they did not "repeat the unfortunate history in which past inter-Korea agreements... fizzled out after beginning".
In the declaration, the two sides said they would seek meetings this year with the US and possibly China -- both parties to the 1953 ceasefire -- "with a view to declaring an end to the war, turning the armistice into a peace treaty, and establishing a permanent and solid peace regime".
But agreeing a treaty to formally close the conflict will be complicated -- both Seoul and Pyongyang claim sovereignty over the whole Korean peninsula.
The two previous Korean summits in 2000 and 2007, both in Pyongyang, also ended with displays of affection and similar pledges, but the agreements ultimately came to naught.
- 'First step' -
Moon welcomed the North's announcement of a moratorium on nuclear testing and long-range missile launches as "very significant", calling it "an important step towards complete denuclearisation".
But how much progress was made on the nuclear issue remained unclear.
Pyongyang has always insisted it needs nuclear weapons to defend itself against a US invasion, and is demanding still unspecified security guarantees to discuss its arsenal, while Washington is pressing it to give up its weapons in a complete, verifiable and irreversible way.
Affirming a commitment to denuclearisation of the Korean peninsula was "not new", said MIT political science professor Vipin Narang, "historic summit notwithstanding".
But he added: "Reaffirming it is better than not reaffirming it."
Paul Haenle of the Carnegie-Tsinghua Center in Beijing said it was "really just the first step in broader diplomatic efforts".
"Similar to a game of chess, this move opens up a series of possible developments but in many ways, the hard work really begins now."
After an early dispatch saying Kim was heading for the summit, the North's state media offered no further coverage of events, even as the leaders' handshake was beamed around the world.
But at a farewell ceremony, the two men watched images of their landmark encounter beamed onto the summit venue in a sound-and-light show, standing hand-in-hand for several minutes.