The Tamil country was divided between the Pallavas in the north with Kanchipuram as their capital, and Pandyas in the south with Madurai as their capital.