 Their attack on Kairouan was defeated, and a new governor of Africa, Hanzala ibn Safwan, proceeded to defeat the rebels in Africa and then to impose peace between Balj's troops and the existing Andalusi Arabs.Roger Collins argues that the Great Berber revolt facilitated the establishment of the Kingdom of Asturias and altered the demographics of the Berber population in the Iberian peninsula, specifically contributing to the Berber departure from the northwest of the peninsula.When the Arabs first invaded the peninsula, Berber groups were situated in the northwest.