When he went to the African Belkin (Tunisia) sent the Caliph al-Mustansir judgment captain Muhammad bin Qasim in heavy army and fleet, led by Abdul-Rahman bin Rmahs to fight al-Hasan ibn Canyon, the end of the year 361 AH / 971 AD. Alostoal has succeeded in recovering Tangier and grab Dalloul and authentic, but progress on land was difficult, Fasttaa Hassan bin Canyon defeat of the Umayyad army examined built Msrkh in Ahwaz Tangier and killed its commander in the spring of the first 362 AH / December 972 AD, took refuge from the remains of the army to Ceuta. He sent government army last led his master Ghalib commander of the mouth up and carry the money to buy followers, Vachtbk with Hassan bin Canyon in Msamudh Qasr and Dar fighting days, and persuaded most people with money Fanfadwa Ibn Kenyon was left with only a few of his own, and his men, he led them to the stone eagle family stronghold and barricaded it, chased winner and stayed on the siege until the early Muharram 363 AH, and intensified the blockade on Hassan asked security of himself and his family and I answer to his request and carry with seven hundred of his men to Cordoba in the last Ramadan in the year 363 AH / June 24 974 m, and established Al-Hassan and his companions about a year at best However, then confiscated his money and get out from Andalusia head down to Africa and then to Egypt, where he stayed as a guest on the Fatimid Caliph Nizar bin contagious Vokrm and Vadth and promised to help revenge.