Taipei (/ˌtaɪˈpeɪ/), officially known as Taipei City, is the capital and a special municipality of Taiwan (officially known as the Republic of China, "ROC"). Sitting at the northern tip of the island, Taipei City is an enclave of the municipality of New Taipei City. It is about 25 km (16 mi) southwest of the northern port city Keelung. Most of the city is located on the Taipei Basin, an ancient lakebed bounded by the two relatively narrow valleys of the Keelung and Xindian rivers, which join to form the Tamsui River along the city's western border.[5] Formerly known as Taipeh-fu during the Qing era and Taihoku under Japanese rule, Taipei became the capital of Taiwan Province as part of the Republic of China in 1945 and has been the capital[a] of the ROC since 1949, when the Kuomintang lost the mainland to the Communists in the Chinese Civil War.
The city proper is home to an estimated population of 2,704,810 (2015),[6] forming the core part of the Taipei–Keelung metropolitan area which includes the nearby cities of New Taipei and Keelung with a population of 7,047,559,[6][7] the 40th most-populous urban area in the world—roughly one-third of Taiwanese citizens live in the metro district. The name "Taipei" can refer either to the whole metropolitan area or the city proper.
Taipei is the political, economic, educational, and cultural center of Taiwan island, and one of the major hubs of Greater China. Considered to be a global city,[8] Taipei is part of a major high-tech industrial area.[9] Railways, high-speed rail, highways, airports, and bus lines connect Taipei with all parts of the island. The city is served by two airports – Taipei Songshan and Taiwan Taoyuan. Taipei is home to various world-famous architectural or cultural landmarks which include Taipei 101, Chiang Kai-shek Memorial Hall, Dalongdong Baoan Temple, Hsing Tian Kong, Lungshan Temple of Manka, National Palace Museum, Presidential Office Building, Taipei Guest House, Ximending, and several night markets dispersing over the city. Its natural features such as Maokong, Yangmingshan, and hot springs are also well known to international visitors.
As the capital city, "Taipei" is sometimes used as a synecdoche for the Republic of China. Due to the ongoing controversy over the political status of Taiwan, the name Chinese Taipei is designated for official use when Taiwanese governmental representatives or national teams participate in some international organizations or international sporting events (which may require UN statehood) in order to avoid extensive political controversy by using other names