North Korean leader Kim Jong Un, left, and South Korean President Moon Jae-in walk together after crossing the demarcation line that separates the two countries. Korea Summit Press Pool/AP

In pictures: The historic Korean summit

North Korean leader Kim Jong Un, left, and South Korean President Moon Jae-in walk together after crossing the demarcation line that separates the two countries. Korea Summit Press Pool/AP

History was made Friday when Kim Jong Un became the first North Korean leader to cross into South Korean territory since 1953.

South Korean President Moon Jae-in was waiting to greet him at the military demarcation line that has long divided the two Koreas. The two leaders shook hands at the line, and then, in a symbolic move, Moon joined Kim on the northern side of the line before they crossed into the southern side together.

Friday’s summit culminated with a declaration that the two countries — who have been technically at war for almost 70 years now — will sign a peace treaty later this year.

“There will not be any more war on the Korean Peninsula, a new era of peace has begun,” Moon said after signing the declaration.

Kim said the two Koreas are one united people who should work together toward reunification. “We are not a people that should be confronting each other. … We should be living in unity,” he said. “We have long waited for this moment to happen. All of us.”

Moon, foreground, waits for Kim before they shook hands at the demarcation line. Korea Summit Press Pool/AFP/Getty Images

People watch live footage of the meeting from a railway station in Seoul, South Korea. An audible gasp ran through the room as Kim walked down the steps towards the military demarcation line, followed by a loud cheers and applause from South Koreans in the room as the historic handshake took place and Kim stepped onto the south side. Jung Yeon-je/AFP/Getty Images

Kim and Moon prepare to shake hands. A spokesman for Moon said Moon complimented Kim on his courage. When Moon asked Kim when it would be possible for him to visit the North, Kim said, “Maybe this is the right time for you to enter the North Korean territory.” Then Moon came over to his side of the line and they crossed together. Korea Summit Press Pool/AFP/Getty Images

A South Korean man weeps in Seoul as he watches Kim cross the military demarcation line. Woohae Cho/Getty Images

Kim and Moon cross the military demarcation line together. Kim is the first North Korean leader to cross the line since fighting ended in the Korean War. Moon has been a longtime advocate of peace between the Koreas. Korea Summit Press Pool/AFP/Getty Images

Kim signs a guestbook at the Peace House. Korea Summit Press Pool/AP

The guestbook message signed by Kim. He wrote: “A new history begins now. The age of peace, at the starting point of history.” Then he signed his name along with the date. Korea Summit Press Pool/Getty Images

On the viewing deck of an observatory in Paju, South Korea, schoolchildren stand under a map showing a view of North Korea. Ed Jones/Getty Images

North Korean security guards spray disinfectant and check a desk before Kim signed the guestbook at the Peace House. Korea Summit Press Pool/AFP/Getty Images

The two leaders pose with children who are from the South Korean village inside the DMZ. Korea Summit Press Pool/AP

Kim and Moon walk past representatives from North Korea on their way to the Peace House. Korea Summit Press Pool/AFP/Getty Images

Moon, second from left, sits with Kim, second from right, for talks at the Peace House. Kim kicked off the meeting by telling Moon they should meet more often. “As I walked over here, I thought, why was it so difficult to get here?” Kim told Moon and the South Korean delegation. “The separating line wasn’t even that high to cross. It was too easy to walk over that line and it took us 11 years to get here.” Korea Summit Press Pool/AFP/Getty Images

North Korean bodyguards jog next to a car carrying Kim as he departs for a lunch break. Korea Summit Press Pool/AFP/Getty Images

Kim and Moon participate in a tree-planting ceremony next to the military demarcation line. The pine tree is from 1953, the year that the Korean War armistice was signed. Both leaders used soil from their countries. A stone commemorating the occasion read “peace and prosperity planted,” and it included the two leaders’ names and the date of the summit. Korea Summit Press Pool/AFP/Getty Images

Kim and Moon raise their hands after signing a joint statement at the end of the day. “The two leaders solemnly declare … that there will be no more war on the Korean Peninsula and a new era of peace has begun,” the declaration said. Korea Summit Press Pool/AFP/Getty Images

The two men shake hands after their joint declaration. Korea Summit Press Pool/AP

The first ladies joined Kim and Moon for a banquet at the end of the summit. At right is Moon’s wife, Kim Jung-sook. Next to her is Kim’s wife, Ri Sol Ju. Korea Summit Press Pool/AFP/Getty Images

Moon speaks during the official dinner at the end of the summit. The menu featured symbolic dishes from both countries. Korea Summit Press Pool/AFP/Getty Images

Members of the media work at an exhibition center in Goyang, South Korea, during the summit. SeongJoon Cho/Bloomberg/Getty Images

Moon shares a toast with Kim and Ri. Korea Summit Press Pool/AP

Kim and Moon walk together in the village that straddles the demilitarized zone. Kim received a full welcoming ceremony, including a military band that played the traditional Korean folk song "Arirang.” Korea Summit Press Pool/AP

Journalists gather on the viewing deck of the observatory in Paju. The observatory overlooks the DMZ. Ed Jones/AFP/Getty Images

The two leaders pose for photos at the Peace House. Behind them is artwork of Mt. Kumgang, which is in North Korea. Korea Summit Press Pool/AFP/Getty Images

The two countries’ delegations pose for a photo together. Korea Summit Press Pool/EPA

Moon waves to supporters as he leaves the Blue House in Seoul ahead of the summit. Jung Yeon-je/AFP/Getty Images

Kim arrives for the summit. Korea Summit Press Pool/AFP/Getty Images

South Korean security stands on the Tongil bridge as they wait for the convoy carrying Moon to the DMZ. Ed Jones/AFP/Getty Images

Produced by Brett Roegiers and Kyle Almond