 At this time, the Berber military colonies in Spain revolted.At the same time, Uqba died and was replaced by Ibn Qatan.By this time, the Berbers controlled most of the north of the Iberian peninsula, except for the Ebro valley, and were menacing Toledo.