He entered the Navy aged 16 and fought in the Battle of Trocadero (1823), Peruvian War of Independence (1824) and First Carlist War (1834–1840).