On the side of the stupa opposite the stairs is a very popular pagoda temple to Hariti Devi, a Hindu goddess who protects against smallpox and children's diseases.
There is a goddess in Hindu that protects against children's diseases.
The Tomara Rajputs made it their capital in 736, with the name of Dhillika, and it was a focus of clan wars until the Muslims conquered it and Qutb-ud-din Aybak set up his sultanate in 1206.