Spanish East Indies
In 1826, he was appointed "segundo cabo" (commander of the army or lieutenant-commander) of the Spanish East Indies in July 1829, and on 23 December 1830, the Governor-General of the islands.