Politics of the Empire of Brazil took place in a framework of a quasi-federal parliamentary representative democratic monarchy, whereby the Emperor of Brazil was the head of state and nominally head of government although the Prime Minister, called President of the Council of Ministers, was effectively the de facto head of government, and of a multi-party system. Executive power was exercised by the government. Legislative power was vested in both the government and the two chambers of the General Assembly (or Parliament). The Judiciary was independent of the Executive and the Legislative. There was also a fourth power, the Moderating power, exercised by the emperor. The Empire of Brazil was divided into 20 provinces and the Neutral Municipality, capital of the country.