sentences:  He entered the army at a young age and saw his first service (as a cadet) in the defense of Ceuta against the Moors in 1784.Later he saw service against the French in Catalonia (1795), against the British under Admiral José de Mazarredo (1797), and in the second siege of Zaragoza (1809).During the latter battle he was captured and taken to France as a prisoner.