The Indo-Aryans brought their religion with them, but it had already begun to move away from common Indo-European roots. The elite form of the religion, featuring Varuna, Indra and Soma, was written down in the first millenium B.C.E. Over time this Vedic religion embraced more elements, and transformed into Hinduism. During the changes rival religions arose: Buddhism, Jainism and Ajivikaism being the three most important.