In 1798 Galiano went with a group of ships to America to bring treasure to Spain, much needed for war funding. He slipped through the British blockade of Cádiz at night during a storm, then sailed to the Caribbean, picking up silver and other valuables at Cartagena and Veracruz. Returning, he had to evade enemy ships several times, but reached Cádiz safely. He made a second treasure voyage to New Spain and commanded a small squadron on the return voyage. British ships and bad weather drove him into Havana, where he was when the Treaty of Amiens ended the war in 1802.