The Bengali—Asamese script wasn't created to write a certain language, but it was the main script in the eastern regions of Medieval India. The script was also used to write Sanskrit. In this region, Hindu epics (Mahabharata, Ramayana etc.) were written in older versions of the Eastern Nagari script in this region. After the medieval period, Pali succeeded Sanskrit as the new written language in the region. The vernacular dialects of Pali eventually evolved into Bengali, Assamese and other related languages. Sankardev used the script in the 15th and 16th centuries to compose his writings in Assamese. Madhava Kandali used it to write the Assamese Ramayana in the 14th century. It was also used by the later Ahom kings to write the Buranjis, the Ahom chronicles, in the Assamese language. There is a rich legacy of Eastern Indian literature written in this script, which is still occasionally used to write Sanskrit today.