In 734 (116H) Ubayd Allah ibn al-Habhab, governor of Ifriqiya, appointed Uqba ibn al-Hajjaj as governor of Al Andalus. Uqba was a just and pious ruler and also a prominent fighter.

He devoted his years in power to carrying out Dawah campaigns (call people to Islam) and conquests to expand the Muslim land. He conducted seven campaigns in France alone, capturing St. Paul, Trois Chateaux, Donzère, Valence, and New Lyons.

Uqba was keen on spreading the word of Allah that he would personally go down to the prisoners and teach them about Islam. He is known as the ruler who guided one thousand prisoners to become Muslim.