The story is based on the life of Vishvamitra, who is one of the most venerated sages of ancient times in India.