The Somavamshi (IAST: Somavaṃśī, "Lunar dynasty") or Keshari (IAST: Keśarī) dynasty ruled parts of present-day Odisha in eastern India between the 9th and the 12th centuries. Their capitals included Yayatinagara (modern Binka) and Abhinava-Yayatinagara (modern Jajpur). The Somavamshis may have been related to the Panduvamshis, who ruled the Dakshina Kosala region in central India. They were probably driven out from this region by the Kalachuris, following which they conquered the Kalinga and the Utkala regions in present-day Odisha, supplanting the Bhauma-Karas. The Somavamshis introduced a new style of art and architecture in Odisha, and their rule saw a remarkable shift from Buddhism to Brahmanism in the region. The Somavamshi rule ended in the early 12th century, when the Eastern Ganga ruler Anantavarman Chodaganga captured their territories. The Somavamshis may have been related to the Panduvamshis of Dakshina Kosala, whose rule in the Dakshina Kosala region seems to have declined in the 8th century. Both dynasties claimed lunar lineage; the early Panduvamshi kings also claimed descent from the legendary Pandavas, unlike the Somavamshi, but this was not the case with the later Panduvamshi kings. The later Panduvamshis, like the Somavamshis, adopted names ending in -gupta. The Panduvamshi kings Tivaradeva and Balarjuna bore the regnal titles "Maha-shiva" and "Maha-shiva-gupta" respectively; multiple Somavamshi rulers bore the regnal name "Maha-shiva-gupta". While the Panduvamshi copper-plate inscriptions are inscribed using "box-headed" characters, all the stone inscriptions starting from the reign of Balarjuna are inscribed in the Nagari script, which is also the script of the Somavamshi inscriptions. The early Somavamshi kings ruled in western Odisha, which once formed the eastern part of Dakshina Kosala, and the Chaudwar inscription of the earliest known Somavamshi king Mahashivagupta I (alias Janamejaya) describes him as Kosalendra ("lord of Kosala").