When did Spain invade?