The Trump administration revoked the visa of Brazil’s U.S. ambassador on Tuesday, marking the latest development in an ongoing diplomatic dispute between the two countries.

A senior State Department official, speaking anonymously, told reporters the U.S. action was taken in retaliation for Brazil withholding formal approval for Florida House Speaker Daniel Perez, the Trump administration’s nominee for U.S. ambassador to Brazil. The official said Brazil indicated the approval would likely be delayed until after its October election.

This tit-for-tat dispute has been ongoing since at least March, when Brazil denied visas to a U.S. delegation attending a critical minerals forum. In July, Brazil also denied visas to two U.S. officials, accusing them of attempting to interfere in Brazil’s electoral process. Brazilian President Luiz Inácio Lula da Silva stated last Wednesday, “This week we had to deny visas to two young folks they were sending to Brazil to meddle in Brazil’s elections.”

The State Department official denied these accusations and referenced Assistant Secretary for Democracy, Human Rights, and Labor Riley M. The official added, “We’ve taken reciprocal action with respect to the Brazilian diplomat here to make the point that it can’t always be one-sided. If there’s going to be limitations on one side’s diplomats, they will be reciprocated.”

If the Brazilian ambassador, If Viotti, leaves the U.S., she would need to reapply for a visa. The official noted that the ambassador’s visa would be reinstated if Brazil approves Perez’s nomination.

“We communicated continually with the Brazilian government for weeks and have given the Brazilian government every opportunity to do the right thing, yet they have continually delayed and obfuscated,” the official said. “President Trump has the right to determine who represents the American people and interests around the world.”