Gaya is one of the thirty-eight districts of Bihar state, India. It was officially established on 3 October 1865. The district has a common boundary with the state of Jharkhand to the south. Gaya city is both the district headquarters and the second-largest city in Bihar. Gaya finds mention in the great epics, Ramayana and Mahabharata. Rama along with Sita and Lakshmana visited Gaya for offering PIND-DAAN to their father Dasharath. In Mahabharata, the place has been identified as Gayapuri. About the origin of the name ‘Gaya' as referred to in Vayu Purana is that Gaya was the name of a demon whose body was pious after he performed rigid penance and secured blessings from Vishnu. It was said that the Gayasura's body would continue to be known as Gaya Kshetra.
The Mangalagauri temple in Gaya has been mentioned in Padma Purana, Vayu Purana and Agni Purana and in other scriptures and tantric works. The present temple dates back to 1459 AD.