Chola emperor Rajaraja I (r. 985–1014 CE) is known to have attacked the Pandyas. He fought against an alliance of the Pandya, Chera and Sri Lankan kings, and defeated the Cheras and "deprived" the Pandyas of their ancient capital Madurai. Emperor Rajendra I continued to occupy the Pandya kingdom, and even appointed a series of Chola viceroys with the title "Chola Pandya" to rule from Madurai (over Pandya and Western Chera/Kerala countries). The very of beginning of Chola emperor Kulottunga's rule (r. from 1070 CE) was marked by the loss of Sri Lanka and a rebellion in the Pandya country.