The Gorkha War marked the rise of the Gorkha kingdom and the consolidation of the British East India Company's influence in Nepal. The door for growing power in the region came upon the heels of conflict between three small kingdoms, Kathmandu, Patan and Bhadgaon. Completely focused on warfare among themselves, they became easy prey for the Gorkha empire in 1767. The British East India company had recently opened shop in India, seeking to establish power in every opportunity. At that point in the history of the British in India, the British East India Company directed the British military, enabling Great Britain to advance imperial goals without establishing the authority of the throne directly in India.
Placing that into perspective, in 1767, the British sought to tighten control over their colonies in North America, especially in light of the growing global war with France. In the North American colonies, a British governor ruled in each colony, representing the King. In India, the throne deferred decisions to act, including military action, to the governors of the British East India Company, which included the British governor. The military acted to advance the commercial interests of the British East India Company. That would change in the 1850s, when the British government established the British Raj, who acted on behalf of the throne.
The Company handled the events leading up to the Gorkha War (1814-1816) rather clumsily. Seizing the opportunity to take control of Nepal, the English acted hastily and failed. The Gorkha rose in that aftermath, becoming a power in Nepal from the 1760s to the early 1800s. In the meantime, the British East India Company had been expanding its sphere of influence. The stage set, Britain and Gorkha went to war. By the time of the Gorkha War outbreak in 1814, Great Britain had learned from experience in India. They showed less haste in sending unprepared troops into battle against the Gorkhas than they had almost forty years earlier. Although the war went badly for the British in the early stages, in the end they won the war and dictated terms of peace in the Treaty of Sugauli of 1816. That treaty came in the aftermath of Britain's loss in the War of 1812 against the United States and the Duke of Wellington's victory over Napoleon at the Battle of Waterloo. Britain rose as a global power, the victory over the Gorkhas marking a milestone in their rise.