Kangra is located in the state of the western part of Himachal Pradesh, in northern India. The city is located at the southern end of the Terai Himalayas, which is run by the Beas River. It is located at an altitude of 734 meters on a short rail line southwest of Dharamshala. Kangra was also called Nagarkot during the past time, then it was the fortress of the Rajput kings. In 1009 AD, the Afghan conqueror Mahmud Ghaznavi sacked the city, and in 1360, Emperor Firoz Shah Tughlaq sacked it. Later he was under the control of the Mughals. Kangra became the center of the famous Kangra Valley painting style in the 18th and 19th centuries, also known as Rajput miniature painting. In 1905, an earthquake devastated the city; In this earthquake, the goddess temple, which was one of the oldest temples in northern India, was also destroyed but was rebuilt.