 It oversaw a "ribat" (fortress) and maintained its own navy that could be put use for piracy or official Umayyad campaigns.Between 939 and 944 it took part in four expeditions against the Franks, Idrisids and Fatimids.By 955, it had been eclipsed by Almería.