Dharmaraj has been linked with many gods such as Sun-god Surya, Varuna, Vishnu, Yama, Shiva and even with Buddhism. Fundamentally, it all started with the magical beliefs related to harvesting in the primitive days and thereafter layers of Aryan Hindu and Buddhist beliefs transformed it in many ways at different places and has now become too complex to trace its roots properly.