Taipei City is located in the Taipei Basin in northern Taiwan and is bordered on the south by the Xindian River , and the Tamsui River on the west. The northern districts of Shilin and Beitou extend north of the Keelung River and are bordered by Yangmingshan National Park .
Because of its location in a valley, the city commonly experiences high temperatures and humidity during the summer months, a problem enhanced by the high population density and the use of air conditioning. The climate is subtropical.
The area covered by the Taipei City limit is ranked 16 of 25 of all counties and cities in Taiwan.