In 1815 the British general David Ochterlony evicted the Nepalese from Garhwal and Kumaon across the Kali River,[3][4] ending their 12-year occupation, which is remembered for its brutality and repression.
[7][8] Historian John Whelpton writes: Negotiations for a general settlement produced a draft which was initialled at Sagauli in Bihar in December 1815 and required Nepal to give up all territories west and east of its present-day borders, to surrender the entire Tarai and to accept a permanent British representative (or 'resident') in Kathmandu.
The Nepalese government initially balked at these terms, but agreed to ratify them in March 1816 after Ochterloney occupied the Makwanpur Valley only thirty miles from the capital.
[11] Three of the main goals of the company were to employ Nepal's impressive army, establish a presence of supervision in the Nepali court, and utilise its trading routes to Tibet.
[14] The treaty stipulated that Nepal's government structure be without external interference and that aside from the singular British resident in the Nepali court, their national affairs would not be compromised.
[18] During the Indian Rebellion of 1857, a division of Gurkha soldiers was sent to the war in support of the British and aided in its success, establishing a friendlier form of diplomacy that ultimately called for a revision in the Sugauli Treaty that panned more positively in favor of Nepal's independence and territorial integrity.