The Katasraj temple complex is believed to date back to the Mahabharata era. Many legends are associated with the temples. The five Pandava brothers, heroes of the Sanskrit epic the Mahabharata, stayed here for four of the 13 years they spent in exile. The lake in the complex is believed to have magical powers and is supposed to be where Yudhisthira defeated the Yaksha with his wisdom, bringing his brothers back to life.
Another legend involves the death of Shiva’s wife Sati; the story goes that when she died he cried so much and for so long that his tears created two holy ponds - one at Pushkara in Ajmer and the other at Ketaksha, which literally means “raining eyes” in Sanskrit. It is from this name that the word Ketas is derived.