On the western front Garhwal and parts of Himachal Pradesh up to Punjab and on the eastern front the state of Sikkim up to Darjeeling became parts of Nepal for a brief period until the British East India Company went on the war from 1814 to 1816. The war ended with the signing of the Treaty of Sugowli where almost a third was ceded to British East India company. The British got Dehradun in 1816 and colonised Landour and Mussoorie in 1827–1828.