Rāmāyana is one of the two major Sanskrit epics of ancient India, the other being the Mahābhārata. Along with the Mahābhārata, it forms the Hindu Itihasa. The epic, traditionally ascribed to the Maharishi Valmiki, narrates the life of Rama, a legendary prince of Ayodhya city in the kingdom of Kosala. The story follows his fourteen-year exile to the forest urged by his father King Dasharatha, on the request of Rama's stepmother Kaikeyi; his travels across forests in the Indian subcontinent with his wife Sita and brother Lakshmana, the kidnapping of Sita by Ravana – the king of Lanka, that resulted in war; and Rama's eventual return to Ayodhya to be crowned king amidst jubilation and celebration.
Valmiki is celebrated as the harbinger-poet in Sanskrit literature. The epic Ramayana, dated variously from the 5th century BCE to first century BCE, is attributed to him, based on the attribution in the text itself. He is revered as Ādi Kavi, the first poet, author of Ramayana, the first epic poem. The Ramayana, originally written by Valmiki, consists of 24,000 shlokas and seven cantos (kaṇḍas). The Ramayana is composed of about 480,002 words, being a quarter of the length of the full text of the Mahabharata or about four times the length of the Iliad. The Ramayana tells the story of a prince, Rama of the city of Ayodhya in the Kingdom of Kosala, whose wife Sita is abducted by Ravana, the demon-king (Asura) of Lanka. Valmiki's Ramayana is dated variously from 500 BCE to 100 BCE or about co-eval with early versions of the Mahabharata.