The Spanish governor was expelled in 1814. What year did Portugal invade the recently liberated territory?