Between 1816 and 1820, the United Kingdom of Portugal, Brazil and the Algarves invaded and occupied the post-Spanish "Provincia Oriental". These Luso-Brazilian forces easily defeated the resistance of the forces of José Gervasio Artigas who, when routed, had to abandon the province in 1820, and went into self-exile in Paraguay.