As a result of the surrender and occupation of Japan at the end of World War II, the islands of Taiwan and Penghu were placed under the governance of the Republic of China (ROC), ruled by the Kuomintang (KMT), on 25 October 1945. Following the February 28 massacre in 1947, martial law was declared in 1949 by the Governor of Taiwan, Chen Cheng, and the ROC Ministry of National Defense. Following the end of the Chinese Civil War in 1949, the ROC government retreated from the mainland as the Chinese Communist Party (CCP) proclaimed the establishment of the People's Republic of China (PRC). The KMT retreated to Taiwan and declared Taipei the temporary capital of the ROC. For many years, the ROC and PRC each continued to claim in the diplomatic arena to be the sole legitimate government of "China". In 1971, the United Nations expelled the ROC and replaced it with the PRC.
In 1987, martial law was lifted and Taiwan began a democratisation process, beginning with the abolition of the Temporary Provisions and culminating with the first direct president election in 1996. By 2000, the Democratic Progressive Party (DPP) came to power and began to pursue Taiwanese independence and identity.