A summit on April 27 will be only the third time that the leaders of the divided Koreas have met in the 65 years since the end of the Korean War.

Both sides agreed Thursday to the meeting between South Korean President Moon Jae-in and North Korean leader Kim Jong Un.

This combination of two file photos shows South Korean President Moon Jae-in, left, at Camp Humphreys in Pyeongtaek, South Korea, on Nov. 7, 2017 and North Korean leader Kim Jong Un during his March 26-27, 2018 visit to Beijing. (AP Photo/Andrew Harnik, Xinhua, File)

This combination of two file photos shows South Korean President Moon Jae-in, left, at Camp Humphreys in Pyeongtaek, South Korea, on Nov. 7, 2017 and North Korean leader Kim Jong Un during his March 26-27, 2018 visit to Beijing. (AP Photo/Andrew Harnik, Xinhua, File)

The previous summits were held during several years of rapprochement and were followed by a decade of tense and cold relations. A tentative thaw began earlier this year with North Korean participation in the Winter Olympics in South Korea's Pyeongchang.

A look at the inter-Korean summits:

SUMMIT OF 2000

The first inter-Korean summit took place between former North Korean leader Kim Jong Il, the late father of Kim Jong Un, and the liberal former president of South Korea, Kim Dae-jung. The three-day meeting in June, which began with a broadly smiling Kim Jong Il tightly grabbing the hands of Kim Dae-jung at the Pyongyang airport, led to an agreement between the Koreas on joint economic projects, which have since stalled. The countries also agreed to resume reunions of families divided between North and South. Kim Dae-jung won the Nobel Peace Prize later in 2000 for his rapprochement policies with the North.

In this Oct. 4, 2007 file photo, South Korean President Roh Moo-hyun, left, holds hands with North Korean leader Kim Jong Il after exchanging a joint declaration documents in Pyongyang, North Korea. (Yonhap Pool Photo via AP, File)

In this Oct. 4, 2007 file photo, South Korean President Roh Moo-hyun, left, holds hands with North Korean leader Kim Jong Il after exchanging a joint declaration documents in Pyongyang, North Korea. (Yonhap Pool Photo via AP, File)

___

SUMMIT OF 2007

The Koreas held their second summit in October 2007 between Kim Jong Il and Roh Moo-hyun, Kim Dae-jung's liberal successor and the political mentor of current South Korean President Moon. Roh went to Pyongyang after crossing the Demilitarized Zone in a symbolic moment that grabbed international headlines. Kim and Roh agreed to pursue a peace treaty to formally end the Korean War and reached a set of cooperation projects. But most of the accords were shelved after Roh's single five-year term ended months later and he was replaced by a conservative who took a harder line over the North's nuclear ambitions.

In this June 14, 2000, file photo, South Korean President Kim Dae-jung, left, and North Korean leader Kim Jong Il raise their arms together before signing a joint declaration during a summit in Pyongyang, North Korea. A summit meeting late next month will be only the third time that the leaders of the divided Koreas have met in the 65 years since the end of the Korean War. (Yonhap Pool Photo via AP, File)

In this June 14, 2000, file photo, South Korean President Kim Dae-jung, left, and North Korean leader Kim Jong Il raise their arms together before signing a joint declaration during a summit in Pyongyang, North Korea. A summit meeting late next month will be only the third time that the leaders of the divided Koreas have met in the 65 years since the end of the Korean War. (Yonhap Pool Photo via AP, File)

___

SUMMIT OF 2018

Moon, a liberal who took office last May, and Kim will meet at a border village on April 27. The meeting comes after North Korea sent athletes, musical performers and officials to February's Winter Olympics, including Kim's sister, who met with Moon to deliver her brother's desire for a summit. On a subsequent visit to the United States, South Korean envoys brokered a potential meeting between Kim and President Donald Trump, who said he would meet the North Korean leader by May.