We have that both poems were epic poems from the line of Sanskrit civilization that developed roughly in the area of ancient India. They are 2 of the longest poems in world history and they have not only tales but also philosophical comments, advice and thus they play an important role in Hinduism; that is so because the deities of Hinduism are involved in the story arc of both poems.
The Mahabharata and Ramayana are two of the longest epic poems from ancient India, significant in Hindu culture. The Mahabharata focuses on the battle for power within the Kuru dynasty and includes the Bhagavad Gita, while the Ramayana follows the journey of Lord Rama to rescue his wife Sita. Both epics teach moral lessons and principles of dharma and have heavily influenced Indian cultural traditions.
;