The Brajeshwari Devi temple, located in the old Kangra township, is said to have been built over the charred breasts of Sati. Once renowned for it's great wealth, over the ages it has been plundered relentlessly. The first of the plunderers was Mahmud of Ghazni, who looted it in 1009.
A mosque was built on the ruins and a garrison was left behind. 35 years later, the local king regained its possession. The shrine was repaired and a replica of the idol was enshrined. The temple was filled with gold, silver and diamonds only to be ransacked again in 1360 by Firoz Tughlaq.
Later Emperor Akbar visited the shrine with his dewan, Todar Mal and restored it to its former grandeur. this temple was subject to successive depredation by invaders from the North. Mohammed of Ghazni is known to have departed with a king's ransom in gold, silver and jewels in 1009.
Earthquake of 1905 destroyed it completely. Rebuilt in the present form in 1920, it continues to be a busy place of pilgrimage. The Brajeshwari Devi Temple is the prime attraction of the Kangra town or perhaps even the entire Kangra district. It was the wealth of this temple that caught the attention of the invaders again and again.
Mahmud of Gazni destroyed the temple and built a mosque over the ruins, however, the temple was rebuilt and was later visited by the likes of Maharaja Ranjit Singh and Mughal Emperor Akbar along with his trusted diwan, Todar Mal.