a battle between the Pandya and Hoysala forces at Mahendramangalam on the Kaveri Valley. Maravarman Sundara I was defeated and Rajaraja III was restored in the Chola country. Sometime later Chola prince Rajendra III attacked the Pandyas and defeated two Pandya royals including Maravarman Sundara II. Hoysala king Somesvara (r. 1233 – 1267 CE) then came to the aid of the Pandyas, defeated Rajendra III and then made peace with the Cholas. Jatavarman Sundara I Jatavarman Sundara I ascended the Pandya throne in 1251 CE. He led his army to the Chola country (even as far as Nellore), to Sri Lanka and to south Kerala. He was also successful in confining the Hoysala control to the Mysore Plateau (the ancient Chola country was now overrun by the Pandyas). Kanchi functioned as the second major city in the kingdom. In his conquests, Jatavarman Sundara I was assisted by number of Pandya royals such as Jatavarman Vira Pandya. Jatavarman Sundara I subdued Rajendra II around 1258–1260 CE and made him pay tribute. The rule of the Cholas ended with Rajendra III. The Pandya attacked the Hoysalas in the Kaveri and captured the fort of Kannanur Koppam. Hoysala king Somesvara was forced to fall back into the Mysore Plateau. The Hoysala king, pressed by enemies from north and south, "assigned" the southern half of his kingdom to his younger son Ramanatha (r. 1254–1292). Somesvara was eventually killed by the Pandya in 1262 CE. Ramanatha managed to recover Kannanur and hold against the Pandya power. Jatavarman Sundara I also came into conflict with the Kadava ruler Kopperunjinga II. It seems that Bana (Magadai) and Kongu countries came under the Pandya rule during the wars against the Hoysalas and the Kadavas. Jatavarman Sundara I also fought the Kakatiya ruler Ganapati (1199–1262). Sri Lanka was invaded by Jatavarman Sundara I in 1258 and on his behalf by his younger brother Jatavarman Vira II between 1262 and 1264 CE. The island was again invaded and defeated by Jatavarman Vira II in 1270 CE. Maravarman Kulasekara I Sundara Pandya I (died in 1268) was succeeded by Maravarman Kulasekara I. Around 1279 the combined force of Hoysala king Ramanatha and Rajendra III was defeated by Maravarman Kulasekara I. Maravarman Kulasekara I, now virtually unchallenged, ruled over the Chola country and southern Tamil speaking portions of Hoysala kingdom. He also invaded Sri Lanka, ruled by Bhuvanaikabahu I, "carried away to