▁Portugal . ▁He ▁also ▁participated ▁in ▁the ▁Pen ins ular ▁War , ▁during ▁which ▁he ▁was ▁taken ▁prisoner ▁in ▁October ▁ 1 8 1 1 . ▁He ▁was ▁appointed ▁by ▁the ▁Duke ▁of ▁Well ington ▁as ▁military ▁governor ▁of ▁B ada j oz ▁in ▁ 1 8 1 2 . ▁He ▁was ▁colon el ▁of ▁the ▁reun ited ▁Regiment ▁of ▁Ext rem ad ura ▁at ▁the ▁end ▁of ▁the ▁war ▁in ▁ 1 8 1 5 . ▁ ▁South ▁America ▁Rica fort ▁was ▁promoted ▁to ▁a ▁brig ad ier ▁in ▁ 1 8 1 6 ▁after ▁the ▁campaign ▁in ▁Al to ▁Peru . ▁During ▁General ▁Pablo ▁Mor illo ' s ▁expedition ▁to ▁Car ac as , ▁Puerto ▁C abel lo ▁and ▁Cart ag ena ▁de ▁Ind ias ▁( Un ited ▁Provin ces ▁of ▁New ▁Gran ada ), ▁he ▁took ▁part ▁in ▁a ▁military ▁campaign ▁to ▁fight ▁Simon ▁Bol í var ' s ▁revolution ary ▁arm ies . ▁During ▁this ▁time , ▁Rica fort ▁was ▁seriously ▁wounded ▁by ▁a ▁rif le ▁shot ▁in ▁the ▁bottom ▁of ▁the ▁right ▁leg ; ▁the ▁bullet ▁broke ▁his ▁tib ia ▁and ▁fib ula ▁and ▁left ▁some ▁sh rap nel ▁embedded ▁in ▁the ▁skin . ▁He ▁was ▁appointed ▁Minister ▁of ▁the ▁Trib unal ▁Sup rem o ▁de ▁Guerra ▁y ▁Marina ▁at ▁C us co , ▁Peru , ▁before ▁becoming ▁the ▁Int endant ▁of ▁La ▁Paz , ▁which ▁was ▁the ▁capital ▁of ▁the ▁intend an cies ▁of ▁Rio ▁de ▁la ▁Pl ata . ▁After ▁he ▁became ▁the ▁perpet ual ▁amb