Early Hinduism (2nd century bce–4th century ce)
The centuries immediately preceding and following the dawn of the Common Era were marked by the recension of the two great Sanskrit epics, the Ramayana and the Mahabharata (the latter incorporating into it the Bhagavadgita). The worship of Vishnu, incarnate as Krishna in the Mahabharata and as Rama in the Ramayana, developed significantly during this period (see below Epics and Puranas), as did the cult of Shiva, who plays an active role in the Mahabharata.