Which continent is XXX located?
Ecuador
In addition, Ecuador's eastern border with the Portuguese colony of Brazil in the Amazon Basin was modified before the wars of Independence by the First Treaty of San Ildefonso (1777) between the Spanish Empire and the Portuguese Empire.