Original: These occupiers were overthrown by the resurgence of the Pandyas and the Pallavas, who restored the traditional kingdoms.
Simplified: These occupiers were overthrown by the Pandyas and the Pallavas, who restored the  kingdoms.