He is best remembered for conquering the Colonia de Sacramento twice : in his first expedition in 1762–1763 during and in the aftermath of the defeated Spanish invasion of Portugal (1762), and in his second expedition in 1776–1777 during the Spanish–Portuguese War, 1776–1777.