From 1808 through 1821, Portugal was effectively both a British protectorate and a colony of Brazil, as the Portuguese Crown remained in Rio de Janeiro. The moving of the Portuguese capital to Rio de Janeiro accentuated the economic, institutional and social crises in mainland Portugal, which was administered by English commercial and military interests under William Beresford's rule in the absence of the monarch. The influence of liberal ideals was strengthened by the aftermath of the war, the continuing impact of the American and French revolutions, discontent under absolutist government, and the general indifference shown by the Portuguese regency for the plight of its people.