Taipei City is located in the Taipei Basin in northern Taiwan. It is bordered by the Xindian River on the south and the Tamsui River on the west. The generally low-lying terrain of the central areas on the western side of the municipality slopes upward to the south and east and especially to the north, where it reaches at Qixing Mountain, the highest (inactive) volcano in Taiwan in Yangmingshan National Park. The northern districts of Shilin and Beitou extend north of the Keelung River and are bordered by Yangmingshan National Park. The Taipei city limits cover an area of , ranking sixteenth of twenty-five among all counties and cities in Taiwan.