Taiwan, officially the Republic of China (ROC), is a country in East Asia. It is located at the junction of the East and South China Seas in the northwestern Pacific Ocean, with the People's Republic of China (PRC) to the northwest, Japan to the northeast, and the Philippines to the south. The territories controlled by the ROC consist of 168 islands, with a combined area of . The main island of Taiwan, also known as Formosa, has an area of , with mountain ranges dominating the eastern two-thirds and plains in the western third, where its highly urbanised population is concentrated. The capital, Taipei, forms along with New Taipei City and Keelung the largest metropolitan area of Taiwan. Other major cities include Taoyuan, Taichung, Tainan, and Kaohsiung. With around 23.9 million inhabitants, Taiwan is among the most densely populated countries in the world. Taiwan has been settled for at least 25,000 years. Ancestors of Taiwanese indigenous peoples settled the island around 6,000 years ago. In the 17th century, large-scale Han Chinese (specifically the Hakkas and Hoklos) immigration to western Taiwan began under a Dutch colony and continued under the Kingdom of Tungning, the first predominantly Han Chinese state in Taiwanese history. The island was annexed in 1683 by the Qing dynasty of China and ceded to the Empire of Japan in 1895. The Republic of China, which had overthrown the Qing in 1911, took control of Taiwan following the surrender of Japan in 1945. Japan would renounce sovereignty over Taiwan in 1952. The immediate resumption of the Chinese Civil War resulted in the loss of the Chinese mainland to Communist forces who established the People's Republic of China, and the flight of the ROC central government to Taiwan in 1949. The effective jurisdiction of the ROC has since been limited to Taiwan, Penghu, and smaller islands. In the early 1960s, Taiwan entered a period of rapid economic growth and industrialisation called the "Taiwan Miracle". In the late 1980s and early 1990s, the ROC transitioned from a one-party state under martial law to a multi-party democracy, with democratically elected presidents since 1996. Taiwan's export-oriented industrial economy is the 21st-largest in the world by nominal GDP and 19th-largest by PPP measures, with a focus on steel, machinery, electronics, and chemicals manufacturing. Taiwan is a developed country, ranking 20th on GDP per capita. It is ranked highly in terms of civil liberties, healthcare,