Guatemala's Constitutional Court has ordered President Jimmy Morales to allow the head of a UN-backed anti-corruption commission to return to the country.
Ivan Velasquez is the head of the commission known as CICIG for its initials in Spanish.
It has led a number of high-profile graft investigations, including one that is pending against Morales.
Earlier this month the president announced that he would not renew CICIG's mandate for another two-year term, effectively giving it a year to wind down and end its activities.
He later said that Velasquez, who was travelling in Washington, would be barred from re-entering the Central American nation.
Morales called Velasquez "a person who attacks order and public security in the country."
The court's ruling was announced late Sunday.