With the advice of Prajapita Brahma, Moon arrived at the Prabhas Teerth and worshipped Lord Shiva. Pleased with his penance, Lord Shiva blessed him and relieved him from the curse of darkness.
Ancient Indian traditions maintain that the Moon god built a golden temple, followed by a silver temple by Ravana, while Lord Shri Krishna is believed to have built the Somnath temple with sandalwood.