The Larut Wars were a series of four wars that began in July 1861 and ended with the signing of the Pangkor Treaty of 1874. The conflicts were fought among local Chinese secret societies over the control of mining areas in Perak which later involved a rivalry between Raja Abdullah and Ngah Ibrahim, making it a war of succession.