during al-andalus, sacavém was considered a "qarya" (one of the settlements of al-ušbuna), but it was administratively integrated into the larger settlement (geographically limited by the roman "conventus"), which was governed by the military governor in cordova, later by the emirs (756–929) and caliphs (929–1031) that governed al-andalus. various seditions against the umayyad caliphate rose-up in the emirs and caliphates of al-garb al-andalus; the revolts of ibn marwan of mérida/badajoz or umār ibn hafsūn of bobastro corresponds to a period of weak central government, when the al garb was a nominal extension of the caliphate, an autonomous principality with its seat in batalyaws (badajoz).