The struggle over whether the government would be dominated by the emperor or by the parliament was carried over into debates from 1826 to 1831 on the establishment of the governmental and political structure. 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.