Taiping (, Jawi: ; , , Hokkien: Thài-pêng; ) is a town located in Larut, Matang and Selama District, Perak, Malaysia. It is located approximately northwest of Ipoh, the capital of Perak, and southeast of George Town, Penang. With a population of 245,182 (in 2013), it is the second largest town in Perak after Ipoh, the state capital. Taiping took over Kuala Kangsar's role as the state capital from 1876 to 1937, but was then replaced by Ipoh. Its growth slowed after that, but in recent years the town has been developing rapidly again. Perak State Museum is located in the town. Taiping also receives some limelight for being the wettest town in Peninsular Malaysia. The average annual rainfall is about 4,000mm in Taiping while the peninsula's average is 2,000mm – 2,500mm. Its unusual rainfall has also led to a fertile collection of flora and century-old rain trees in the Taiping Lake Gardens. Taiping was ranked Top 3 Sustainable Cities in the world. History The area developed quickly in the 19th century when tin was discovered. The mines attracted large numbers of settlers, particularly Chinese. Feuds began between the different groups of Chinese immigrants and became so bitter that in the early 1870s, the British intervened and assumed control of the town. Taiping was the capital for the districts of Larut, Matang and Selama in Perak. Before 1937, Taiping was the capital of the state of Perak and the centre of a long and drawn out war resulting in a change of rulership for the state. Taiping used to be known as Klian Pauh – Klian meaning mine while Pauh is a type of small mango. Long Jaafar has been historically credited with the discovery of tin in Larut in 1848. According to legend, Long Jaafar had an elephant named Larut and he used to take this elephant with him when journeying between Bukit Gantang and Lubok Merbau. One day the elephant went missing and when the elephant was eventually found three days later Long Jaafar noticed tin ore embedded in the mud that was on the elephant's legs. It is said that this was how Larut got its name. Eventually in 1850, Larut district was bestowed upon Long Jaafar by Raja Muda Ngah Ali and the Chiefs of Perak: the Temenggong, Panglima Bukit Gantang, Panglima Kinta, Syahbandar and Seri Adika Raja. Some time later, the Sultan of Perak, Sultan