Taipei (臺北市; 台北市) is the capital of Taiwan. Situated at the northern tip of Taiwan, it is located on the Tamsui River 25 km southwest of Keelung, a port city on the Pacific. The city proper is home to about 2,618,772 people. Taipei, New Taipei, and Keelung together form the Taipei–Keelung metropolitan area with a population of 6,900,273. Taipei was founded in the early 18th century and became an important center for overseas trade in the 19th century. The Qing Dynasty of China made it the provincial capital of Taiwan in 1886. Japan acquired Taiwan in 1895 after the First Sino-Japanese War. Taiwan became a colony of Imperial Japan with Taipei as its capital.