The border dispute between Nepal and British India had caused the Anglo-Nepalese War of 1814–16 and brought the Gurkhas under British influence.
During the war the Gurkhas sent several missions to China in vain expectation of assistance.
The war ended with the signing of the Treaty of Sugauli in 1816, which ceded around a third of Nepal’s territory to the British.
Treaty of Sugauli—-
By the treaty, Nepal renounced all claim to the disputed Tarai, or lowland country, and ceded its conquests west of the Kali River and extending to the Sutlej River.
Nepal remained independent, but it received a British resident with the status of an ambassador to an independent country rather than of the controlling agent of the supreme government in an Indian state.