Taiping originated as a mining centre for tin in the first half of the 19th century. Following the discovery of tin deposits, Taiping experienced an influx of Chinese settlers and replaced Kuala Kangsar as the state's capital between 1876 and 1937. Taiping lies 60km northwest of Ipoh. The city has a number of colonial era buildings.