Pallavas became a major power during the reign of Mahendravarman I (571–630 CE) and Narasimhavarman I (630–668 CE) and dominated the Telugu and northern parts of the Tamil region for about 600 years until the end of the 9th century. Throughout their reign they were in constant conflict with both Chalukyas of Badami in the north and the Tamil kingdoms of Chola and Pandyas in the south. Pallavas were finally defeated by the Chola ruler Aditya I in the 9th century CE.