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