In Satya Yuga there used to be a king named Shveta. He was such a good king that during his reign people lived for ten thousand years. No one dies as a child. Longevity was high and there was no infant mortality.
But there was a sage named Kapalagoutama. Unfortunately, the sage’s son died as an infant. The sage brought the dead body to Shveta and the king resolved that if he could not bring the sage’s son back to life within a week, he would immolate himself in a fire. Having thus taken an oath, king Shveta worshipped Shiva with one thousand and one hundred blue lotus flowers. Shiva appeared before the king and granted the boon that the infant son might be brought back to life.
King Shveta ruled for a thousand years. He also built a temple to Vishnu in Purushaottama kshetra. The temple that had been built by Indradyumna was known as the temple of Jagannatha. Shveta’s temple was not very far from this and was known as the temple of Shvetamadhava. The image in this temple was as white as the moon.