A top US official in the fight against so-called Islamic State group has quit over President Donald Trump's decision to pull troops from Syria.
Before Mr Trump s announcement he had insisted that the US would continue working against IS in Syria.
Mr Trump described Mr McGurk s resignation as a "nothing event".
Mr McGurk s decision to quit follows the resignation of Defence Secretary Jim Mattis on Thursday.
Gen Mattis had also opposed withdrawing troops from Syria as well as reducing the US presence in Afghanistan.
Mr McGurk, 45, is an experienced diplomat who was appointed to his current role in 2015 under the Obama administration.
In early December he told reporters: "We want to stay on the ground and make sure that stability can be maintained in these areas."
He went on to say: "It would be reckless if we were just to say, well, the physical caliphate is defeated, so we can just leave now. I think anyone who s looked at a conflict like this would agree with that."
What did McGurk say about his resignation?
In his resignation letter, seen by AP news agency, Mr McGurk said that IS militants in Syria were on the run but not yet defeated. He said that withdrawing US forces from Syria would create the conditions that gave rise to IS.
In an email to staff quoted by the New York Times, he said Mr Trump s decision to pull out troops "came as a shock and was a complete reversal of policy". It "left our coalition partners confused and our fighting partners bewildered", he said.
"I ultimately concluded I could not carry out these new instructions and maintain my integrity," he went on to say.
What does Trump say?
Mr Trump announced his decision to withdraw some 2,000 US troops from Syria on Wednesday, asserting that IS had been defeated.
On Saturday, he continued to insist that the decision to pull out was the right one and that, now that IS was defeated on the ground, other players could take care of the situation.
However, important allies including senior Republicans and foreign powers have disputed the claim and say the move could lead to a resurgence of IS.
A Kurdish-led alliance, the Syria Democratic Forces (SDF) has also warned that IS could recover.
US troops have helped rid much of Syria s north-east of the jihadist group, but pockets of fighters remain.
A recent US report said there were still as many as 14,000 IS militants in Syria and even more in neighbouring Iraq.
What is the US presence in Syria?
US ground troops first became involved in Syria in Autumn 2015 when then President Barack Obama sent in a small number of special forces to train and advise local Kurdish fighters who were fighting IS.
The US did this reluctantly after several attempts at arming anti-IS groups had descended into chaos.
Over the intervening years the numbers of US troops in Syria increased, standing today at some 2,000, though some estimates place the number perhaps even higher.
A network of bases and airstrips has been established in an arc across the north-eastern part of the country.
The US has also been part of an international coalition conducting air strikes against IS and other militants.