The Cholas were defeated by a Rashtrakuta-lead confederacy in the battle of Takkolam in 949 CE. By mid-950s, the Chola kingdom had shrunk to the size of a small principality (its vassals in the extreme south had proclaimed their independence). It is a possibility that Pandya ruler Vira Pandya defeated Chola king Gandaraditya and claimed independence. Chola ruler Sundara Parantaka II (r. 957–73) responded by defeating Vira Pandya in two battles (and Chola prince Aditya II killed Vira Pandya on the second occasion). The Pandyas were assisted by Sri Lanka forces of king Mahinda IV.