Kailash Manasarovar. he also built the Golu Devata Temple, at Ghorakhal, near Bhimtal, after Lord Golu, a general in his army, who died valiantly in battle. He also built the famous Bhimeshwara Mahadev Temple at Bhimtal. Towards the end of the 17th century, Chand kings again attacked the Garhwal kingdom, and in 1688, Udyot Chand erected several temples at Almora, including Tripur Sundari, Udyot Chandeshwar, and Parbateshwar. To mark his victory over Garhwal and Doti, the Parbateshwar temple was renamed twice, to become the present Nanda Devi temple. Later, Jagat Chand (1708–20), defeated the Raja of Garhwal and pushed him away from Srinagar (in Uttarakhand, not to be confused with the capital of present-day Indian Kashmir), and his kingdom was given to a Brahmin. Nepalese invasion and its defeat In the latter half of the 18th century, the power of Kumaon was on decline, as the king Mahendra Chand was unable to properly administer the country. After the fall of Doti, the Gorkhas decided to invade over Kumaon. The Gorkha forces, under the leadership of Amar Singh Thapa crossed the kali river, and reached Almora via Sor and Gangoli. Mahendra Chand fled to the plains, and Kumaon was easily annexed to the Gorkha Kingdom. The Gorkha rule over Kumaon lasted for 24 years. The architectural advancements during the period was a road connecting kali river to Srinagar via Almora. Almora was the largest town of Kumaon during the gorkha period, and is estimated to have about 1000 houses. After the Gorkhas started meddling in the territories of Oudh, the Nawab of Oudh, who was then a suzerain of the British Empire, asked for their help, thus paving way for the Anglo-Nepalese War of 1814. The British forces under Colonel Nicholas, consisting of about forty five hundred men and six pounder guns, entered Kumaon through Kashipur and conquered Almora on 26 April 1815. On the same day, Chandra Bahadur Shah, one of the principle Gurkha chiefs, sent a flag of truce, requesting to end hostilities in the region. A negotiation was brought up the following day, under which the Gurkhas agreed to leave the Country, and all its fortified places. The war ended with Nepal signing the Treaty of Sugauli in 1816, under which, Kumaon officially became a British territory. British Raj Later, the region was annexed by the British. In 1815 the Kumaon region was joined with the eastern half