The Gorkha War (1814–1816), or the Anglo–Nepalese War, was fought between the Kingdom of Nepal and the British East India Company as a result of border disputes and ambitious expansionism of both the belligerent parties. 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. Most of the ceded territories had been acquired by Nepal by war only in the last 10 to 20 years from other kingdoms that had never been a part of Nepal. Although it lost a significant part of its kingdom, Nepal remains the only country to maintain its national sovereignty despite the war and the British Imperialism (all other countries were effectively invaded by the British). Nepal has not yet been ruled under any foreign emperors or rulers.
The British were the invading forces, while the Nepalese maintained a defensive position. The British attacked in two successive waves of invasion. It was the most expensive war waged during the governorship of Lord Moira.