PANMUNJOM — North Korean Dictator Kim Jong Un and South Korean President Moon Jae-in agreed to end the Korean War on Friday, jointly signing the “Panmunjom Declaration for Peace, Prosperity and Unification on the Korean Peninsula.”

“South and North Korea will actively cooperate to establish a permanent and solid peace regime on the Korean peninsula. Bringing an end to the current unactual state of armistice and establishing a robust peace regime on the Korean peninsula is a historical mission that must not be delayed any further,” the declaration read in part.

The two countries also agreed “to actively seek the support and cooperation of the international community for the denuclearization of the Korean Peninsula.”

Jong Un and Jae-in rose to their feet after the signing and shook hands, pausing for the cameras.

The two greeted each other earlier the day at what is known as the Military Demarcation Line, and Jong Un stepped across into South Korea. He then invited Jae-in to step into North Korea. It was the first time a North Korean leader set foot on South Korean soil since the 1950’s.

“A new history begins from now on. At the starting point of an era of peace and history,” Jong Un reportedly wrote in a guest book at the Peace House.

He and Jae-in also planted a pine tree together at the border as a symbol of “peace and prosperity.”

While the Korean War was stated to have ended in 1953 with a truce, no official treaty has ever been signed. With Friday’s agreement, the two leaders vow to end the war by the end of the year.

U.S. President Donald Trump is expected to meet with the North Korean leader either in May or June, and Moon is scheduled to visit North Korea for another summit in the fall.

“After a furious year of missile launches and nuclear testing, a historic meeting between North and South Korea,” Trump tweeted. “Good things are happening, but only time will tell!”