Virupa was born a crown prince, the son of King Suvarnacakra of the city off Vesasa in eastern India. He mastered all the five major sciences and became a great scholar of both Buddhist and non-Buddhist doctrines. It was here that he built a stone temple in which he installed holy images of the Buddha. He established a tradition of making regular offerings to cleanse the misdeeds of his deceased parents. When the temple was complete, he offered a big celebratory feast to the whole monastic community and dedicated the merits.