 After the fall of Cordoba in 1013, the Saqaliba fled from the city to secure their own fiefdoms.One group of Saqaliba seized Orihuela from its Berber garrison and took control of its entire region.Among the Berbers who were brought to al-Andalus by al-Mansur were the Zirid family of Sanhaja Berbers.