Taipei (ˌtaɪˈpeɪ), officially Taipei City,tw is the capital and a special municipality of Taiwan. Located in Northern Taiwan, Taipei City is an enclave of the municipality of New Taipei City that sits about southwest of the northern port city of Keelung. Most of the city rests on the Taipei Basin, an ancient lakebed. The basin is bounded by the relatively narrow valleys of the Keelung and Xindian rivers, which join to form the Tamsui River along the city's western border.
The municipality of Taipei is home to an estimated population of 2,494,813 (March 2023), forming the core part of the Taipei–Keelung metropolitan area, also known as "Greater Taipei", which includes the nearby cities of New Taipei and Keelung with a population of 7,047,559, the 40th most-populous urban area in the world—roughly one-third of Taiwanese citizens live in the metro areas. The name "Taipei" can refer either to the whole metropolitan area or just the municipality alone. Taipei has been the political center of the island since 1887, when it first became the seat of Taiwan Province by the Qing dynasty until 1895 and again from 1945 to 1956 by the ROC government, with an interregnum from 1895 to 1945 as the seat of the Government-General of Taiwan during the Japanese rule. The city has been the national seat of the ROC central government since 1949, it became the nation's special municipality (then known as Yuan-controlled municipality) on 1 July 1967 from provincial city status.
Taipei is the economic, political, educational and cultural center of Taiwan and one of the world's major global cities. Considered to be a global city and rated as an Alpha − City by GaWC, Taipei is part of a major high-tech industrial area. Railways, highways, airports and bus lines connect Taipei with all parts of the island. The city is served by two airports – Songshan and Taoyuan. The municipality is home to architectural and cultural landmarks, including Taipei 101 (formerly the tallest building in the world), Chiang Kai-shek Memorial Hall, Dalongdong Baoan Temple, Hsing Tian Kong, Lungshan Temple of Manka, National Palace Museum, Presidential Office Building, Taipei Guest House and Zhinan Temple.