 He was appointed by the Duke of Wellington as military governor of Badajoz in 1812.He was colonel of the reunited Regiment of Extremadura at the end of the war in 1815.Ricafort was promoted to a brigadier in 1816 after the campaign in Alto Peru.