circ led ▁by ▁enemy ▁forces ▁on ▁all ▁sides , ▁it ▁fell ▁in ▁ 1 2 4 9 ▁to ▁the ▁forces ▁of ▁Af onso ▁III , ▁who ▁don ated ▁the ▁lands ▁to ▁the ▁Order ▁of ▁Av iz ▁in ▁ 1 2 5 0 . ▁The ▁Mo ors ▁were ▁per sec uted ▁ter rib ly ▁by ▁the ▁vict orious ▁army , ▁which ▁ch ased ▁the ▁remaining ▁forces ▁into ▁a ▁ca vern , ▁known ▁today ▁as ▁C ova ▁do ▁X or ino , ▁situated ▁near ▁the ▁southern ▁limits ▁of ▁the ▁old ▁city . ▁The ▁town ▁became ▁part ▁of ▁the ▁kingdom ▁of ▁Portugal ▁and ▁the ▁Al gar ves . ▁King ▁D . ▁Manuel ▁I ▁awarded ▁a ▁Char ter ▁( for al ) ▁to ▁the ▁Town ▁of ▁Al buf e ira ▁on ▁ 2 0 ▁August ▁ 1 5 0 4 ▁and ▁from ▁that ▁day ▁the ▁town ▁was ▁govern ed ▁according ▁to ▁the ▁legisl ation ▁in ▁force ▁for ▁the ▁rest ▁of ▁the ▁country . ▁ ▁Al buf e ira ▁was ▁one ▁of ▁the ▁towns ▁of ▁the ▁Al gar ve ▁most ▁affected ▁by ▁natural ▁cal am ities , ▁but ▁it ▁was ▁the ▁ 1 7 5 5 ▁Lis bon ▁earth qu ake ▁which ▁caused ▁the ▁worse ▁damage . ▁The ▁sea ▁inv aded ▁the ▁town ▁with ▁ ▁waves , ▁destroy ing ▁almost ▁all ▁the ▁buildings ▁along ▁the ▁coast . ▁In ▁the ▁town ▁proper , ▁only ▁ 2 7 ▁resident ial ▁buildings ▁surv ived ▁the ▁natural ▁dis aster , ▁but ▁in ▁states ▁of ▁ru in . ▁The ▁par och ial ▁church