Mexico's finance minister Carlos Urzua has quit over differences with the country's left-wing president Andrés Manuel López Obrador.
In a letter, made public on his Twitter account on Thursday, Finance Secretary Carlos Manuel Urzúa Macías said there were many economic "discrepancies".
He also said in the letter that economic policy had to be based on evidence and be free of "extremism".
The currency and stock markets fell after the news of his resignation, reports BBC.
Arturo Herrera Gutiérrez has taken over as finance secretary of Latin America's second-largest economy.
"There were many discrepancies in economic matters," Mr Urzúa wrote in the letter addressed to the country's president dated 9 July.
"I am convinced that all economic policy should be carried out based on evidence, taking care of the different effects it can have and free from all extremism, be it from the right or left."
He also found "the imposition of officials without knowledge of public finances" to be "unacceptable".