 During General Pablo Morillo's expedition to Caracas, Puerto Cabello and Cartagena de Indias (United Provinces of New Granada), he took part in a military campaign to fight Simon Bolívar's revolutionary armies.During this time, Ricafort was seriously wounded by a rifle shot in the bottom of the right leg; the bullet broke his tibia and fibula and left some shrapnel embedded in the skin.He was appointed Minister of the Tribunal Supremo de Guerra y Marina at Cusco, Peru, before becoming the Intendant of La Paz, which was the capital of the intendancies of Rio de la Plata.