The Ramacharitam is a Sanskrit epic poem written in Arya metre by Sandhyakar Nandi during Pala Empire, between approximately 1050 and 1150 CE. This work simultaneously narrates the story of the Ramayana and the Pala king Ramapala. The work is biased in favour of Ramapala, but remains an important historical source for the Pala history. The poem has been known for being the earliest extant literary work in Malayalam literature.
The text details the historical events in Bengal from the assassination of the Pala emperor Mahipala II by Divya, a rebel Kaivarta officer up to the reign of Madanapala in 215 verses, by using a figure of speech, the Shlesha (double-meaning words) in each verse.