The major Sanskrit epics, "Ramayana" and "Mahabharata", which belong to the "smriti", were compiled over a protracted period during the late centuries BCE and the early centuries CE. They contain mythological stories about the rulers and wars of ancient India, and are interspersed with religious and philosophical treatises. The later Puranas recount tales about devas and devis, their interactions with humans and their battles against rakshasa. The Bhagavad Gita "seals the achievement" of the "consolidation of Hinduism", integrating Brahmanic and sramanic ideas with theistic devotion.