The Gurkha War in 1814-1816 was a war fought between the British Empire and the Kingdom of Nepal.
The Gurkhas of Nepal inflicted a series of repulses on the British Army in Bengal. Each side earned the respect of the other, but eventually British forces were victorious. The resulting Treaty of Kathmandu in 1816 gave the British the tract of hill country where Simla, the site of the future summer capital of British India, was situated and it settled relations with British India for the rest of the British period. Nepal remained independent and isolated, supported by the export of soldiers to strengthen the British military presence in India.