 In 695, Hassan ibn al-Nu'man captured Carthage and advanced into the Atlas Mountains.An imperial fleet arrived and retook Carthage, but in 698, Hasan ibn al-Nu'man returned and defeated Emperor Tiberios III at the 698 Battle of Carthage.Roman imperial forces withdrew from all of Africa except Ceuta.