The United Nations has appointed a Mexican diplomat as the top U.N. official leading the fight against global warming.

Patricia Espinosa said in a statement Thursday that she is "grateful and honored" to be named executive secretary of the U.N. Framework Convention on Climate Change.

The appointment was announced by U.N. Secretary-General Ban Ki-moon.

The 57-year-old Espinosa is Mexico's ambassador to Germany so she won't have to move far — the U.N.'s climate secretariat is in Bonn, the former capital of West Germany.

She will succeed Costa Rican Christiana Figueres who is stepping down in July after six years as the U.N.'s climate boss.

Espinosa's main task will be to ensure that countries implement a landmark agreement to reduce global greenhouse gas emissions, reached in Paris in December.