Origin/History :-
The temple has a long history, dating back to the 9th or 10th century, and is believed to have been originally established by Adi Shankaracharya in the 8th century. It underwent expansion later under the Garhwal dynasty. The name "Garhwal" first appears in a copper plate inscription in the temple from the reign of Raja Man Shah in 1610.
The temple received significant contributions from various rulers of the Garhwal dynasty. Sahaj Pal, a ruler from the dynasty, donated a bell to the temple in 1551, as noted in the inscriptions. Raja Man Shah, another significant contributor, is mentioned in inscriptions from 1610 CE. Raja Prithvi Pat Shah, who ruled the region, is commemorated in inscriptions on the door and doorways of the temple, dating to 1664. King Jai Kirthi Shah, who ruled in 1780, ended his life in the temple after being betrayed by his courtiers.
Puranic Significance :-
In the Ramayana, the intense battle between Dharma and Adharma culminates with Bhagavan Rama defeating the Asura king Ravana, who had kidnapped Sita, Rama’s wife. However, Rama faced a significant dilemma as Ravana was a Brahmin by birth, being the son of the sage Vishravasa and Kaikasi, daughter of Sumali, which implicated Rama in the sin of Brahmahatya (the killing of a Brahmin).
To atone for this grave sin, Sri Rama undertook penance at Devprayag. During his devotion in the sacred waters, an apsara named Pushpamala sought his help to escape a crocodile that threatened her. Rama vanquished the crocodile with his sword, which then vanished into the heavens.
The site became renowned as Prayaga, meaning the ultimate place for penance, because Brahma, the creator, also performed penance there. The Pandavas similarly performed penance at this location before the Mahabharata war. Additionally, Sage Bharadwaja did penance at this spot, earning his place as one of the Saptarishis.