 After 1584, the comptrollerships are replaced by the Council of the Court of the Exchequer ("Conselho do Tribunal da Fazenda").In 1761, the Royal Treasury ("Erário Régio") is created, and it becomes the central department of State Finance.The modern Ministry of Finance is created in 1788, then under the designation of Secretary of State for the Affairs of the Exchequer ("Secretaria de Estado dos Negócios da Fazenda").