During which war was Brazil last invaded ?
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 .