The history of the Gorakhnath Temple is a saga of spiritual resilience and cultural continuity that mirrors the life and legacy of Guru Gorakhnath. While the current grand structure is a result of modern architectural efforts, the site has been a pulsating center of spiritual activity since at least the 11th century. Guru Gorakhnath, the foremost disciple of Matsyendranath, is believed to have chosen this spot for his intense 'Tapasya' (penance).
He arrived here during a period of great social fragmentation and offered a unifying path of yoga and internal purification. The temple's physical history is marked by several cycles of destruction and rebirth. During the 14th century, the original shrine was razed by the forces of Alauddin Khalji during his eastern campaigns. Despite this, the Nath monks continued their practices in the ruins, and the temple was subsequently rebuilt.
In the late 17th century, the temple faced another severe trial when Aurangzeb ordered its destruction and converted the site into a prayer hall. However, the resilient 'Yogis' of the Nath sect eventually reclaimed the site and restored the temple to its former glory. The modern era of the temple began under the leadership of Mahant Digvijay Nath, who was a visionary leader and a key figure in the Hindu resurgence of the early 20th century.
He initiated the construction of the massive marble structure and expanded the Math's social footprint. This work was carried forward with great zeal by Mahant Avaidyanath, who turned the Math into a major political and social powerhouse in Uttar Pradesh. The present Mahant, Yogi Adityanath, has overseen a dramatic transformation of the entire precinct, introducing modern pilgrim facilities, widening the approach roads, and enhancing the aesthetic grandeur of the campus.
A legendary and heart-warming aspect of the temple's history is the 'Khichdi' legend. It is said that Guru Gorakhnath, during his travels to the Jwala Devi temple in Himachal Pradesh, was offered meat by the local priests. The Guru, upholding the principle of Satvik diet, declined and stated that he would cook his own meal if provided with a vessel and the simple ingredients of rice and lentils.
He carried a small earthen pot (Akshaya Patra) to Gorakhpur and sat in meditation. People from the surrounding villages poured rice and pulses into his vessel, but due to his divine power, the pot never overflowed, yet it fed thousands. This miracle is the reason why 'Khichdi' remains the most sacred offering at the temple, representing the Guru's eternal grace and the community's collective spirit.











