The Gorkhas defeated the Nepali king and occupied Kathmandu. This emboldened them and they turned westward and attacked Kumaon and Garhwal in 1803. Raja Pradyumna Shah of Garhwal was defeated and killed in January 1804. Srinagar was under Gorkha rule from 1806 to 1815 CE. After the Gorkhas were defeated by the British, Srinagar became a part of British Garhwal.