The Trump administration’s top envoy for Iran is stepping down just as the United States tries to moves ahead with a major diplomatic effort that would extend a U.N. arms embargo against Tehran in the face of widespread international opposition.

Brian Hook announced his departure on Thursday, a day after Secretary of State Mike Pompeo said the U.S. would call for a U.N. Security Council vote next week on a resolution to indefinitely extend the embargo, which is due to expire in October.

That resolution is expected to fail, setting the stage for a showdown between the U.S. and the other Security Council members over the reimposition of all international sanctions on Iran. President Donald Trump withdrew the U.S. from the 2015 Iran nuclear deal two years ago but his administration argues it retains the right to invoke the “snapback” of U.N. sanctions because it is a council member. Others disagree.

Pompeo said in a statement that Hook “has been my point person on Iran for over two years and he has achieved historic results.”

Hook will be replaced after an as-yet undetermined transition period as Iran envoy by Elliott Abrams, the U.S. envoy for Venezuela. .

Hook, a longtime Republican foreign policy fixture, was an early arrival in the Trump administration. He served as the department's director of policy planning under Trump's first secretary of state, Rex Tillerson. After Tillerson was fired, Pompeo appointed Hook to the Iran position.

As policy planning chief, Hook tried to strengthen the Iran deal, which Trump denounced during the 2016 presidential campaign as the worst deal ever and pledged to pull out from. But once Tillerson was fired and Pompeo took over with a presidential mandate to withdraw from the deal, his focus shifted to reimposing U.S. sanctions on Iran.

Under the deal orchestrated largely by the Obama administration, Iran was granted billions of dollars in sanctions relief in exchange for curbs on its nuclear program that the U.S. and others alleged was a cover for atomic weapons development. Once he became Iran envoy, Hook was in charge of identifying sanctions to be restored and trying to lobby Europeans and others to follow suit.

At the same time, Hook had some success in negotiating prisoner swaps with Iran, securing the release of two Americans in exchange for Iranians held in the United States. Hook twice flew to Zurich, Switzerland, to take custody of freed Americans.