 In 682, Yazid restored Uqba ibn Nafi as the governor of North Africa.Uqba won battles against the Berbers and Byzantines.From there Uqba marched thousands of miles westward towards Tangier, where he reached the Atlantic coast, and then marched eastwards through the Atlas Mountains.