The Ramayana was composed in Sanskrit, probably not before 300 bce, by the poet Valmiki and in its present form consists of some 24,000 couplets divided into seven books.