During which war was Brazil last invaded ?
Unable to deal with the problems in both Brazil and Portugal simultaneously , the Emperor abdicated on behalf of his son , Pedro II , on 7 April 1831 and immediately sailed for Europe to restore his daughter to her throne .