Harun succeeded as Wali when his predecessor, Sa'dun al Ruayni was captured by besieging Frankish forces while trying to reach Córdoba to raise help. Harun was chosen as Wali by both the Gothic and Muslim population in the city.