Gurkhas served as troops under contract to the British East India Company in the Pindaree War of 1817, in Bharatpur in 1826, and the First and Second Anglo-Sikh Wars in 1846 and 1848.