The White House has sacked the acting US Attorney-General who told Justice Department lawyers not to defend Donald Trump's immigration order. Her replacement has already been sworn in.
Sally Yates was named deputy attorney general by then-President Barack Obama in 2015. Mr Trump asked her to stay on as acting head of the Justice Department.
Hours after Ms Yates said the executive order did not appear to be lawful, President Donald Trump replaced her with Dana Boente, the US Attorney for the Eastern District of Virginia.
.@POTUS has named Dana Boente, US Attorney for the Eastern District of VA as Acting Attorney General. Sally Yates has been relieved.
— Sean Spicer (@PressSec) January 31, 2017
In a statement, the White House said Ms Yates "betrayed" the department "by refusing to enforce a legal order designed to protect the citizens of the United States".
It said her actions were political.
"Ms. Yates is an Obama Administration appointee who is weak on borders and very weak on illegal immigration," the White House said.
Mr Boente has since been sworn in and issued a statement instructing Justice Department lawyers to defend the president's order.
Yates questioned Trump order's legality
Mr Trump's order halted the entire US refugee programme for 120 days, indefinitely banned Syrian refugees and suspended all nationals from Iran, Iraq, Libya, Somalia, Sudan, Syria and Yemen for 90 days. It has sparked protests around the globe and condemnation from international leaders.
Ms Yates told department lawyers not to defend the order because she was not "convinced" it was lawful.
She was days away from being replaced by Mr Trump's nominee, Republican Senator Jeff Sessions, who is awaiting Senate confirmation.
In a letter to employees published by US media, she noted the order had been challenged in court in a number of jurisdictions.
"My responsibility is to ensure that the position of the Department of Justice is not only legally defensible, but is informed by our best view of what the law is," she wrote.
"I am responsible for ensuring that the positions we take in court remain consistent with this institution's solemn obligation to always seek justice and stand for what is right."
The White House dismissed her comments as rhetoric and said Mr Trump acted within his presidential powers. It later said Mr Boente would be acting US attorney general until Mr Sessions was approved.
The Democratic National Committee (DNC) condemned Mr Trump's firing of Ms Yates.
"Donald Trump can try to silence heroic patriots like Sally Yates who dare to speak truth to power about his illegal anti-Muslim ban that emboldens terrorists around the globe," the DNC said in a statement. "But he cannot silence the growing voices of an American people now wide awake to his tyrannical presidency."
A rare move
There have been only a handful of instances in US history of top Justice Department officials publicly breaking with the White House.
The most famous example was in 1973, when then-Attorney General Elliot Richardson and his deputy resigned rather than obey President Richard Nixon's order to fire a special prosecutor investigating the Watergate scandal.
The incident - which became known as the 'Saturday Night Massacre' - was a public relations disaster and is seen as a turning point in Nixon's administration.
How many affected so far?
An internal Department of Homeland Security document seen by Reuters showed 348 visa holders were kept from boarding US-bound flights this week, More than 200 people went to the United States, but were denied entry.
More than 735 people were pulled aside for questioning by US customs and border protection officers at airports, including 394 green card holders, who are legal permanent US residents, the document said.
Mr Trump's administration is granting waivers from the refugee ban to allow 872 people into the country this week - refugees who were already cleared for resettlement in the US and were in transit when the order came out.
Obama 'heartened' by protests
Tens of thousands of people have rallied in US cities and at airports in the past few days to voice outrage over President Trump's executive order.
In New York, Washington and Boston, a second wave of demonstrations followed spontaneous rallies that broke out at US airports on Saturday as US Customs and Border Protection agents began enforcing Trump's directive.
In Britain, thousands protested in London and other cities. More than 1.5 million people have signed a petition calling for Prime Minister Theresa May to cancel US President Donald Trump's planned state visit to avoid embarrassing the Queen.]
Mrs May's office said earlier in the day she was "very happy" to extend the invitation to Mr Trump on behalf of the Queen.
Former US President Barack Obama apparently broke with the convention of former presidents avoiding comment on their successors.
Commenting on the US protests about the immigration order, Mr Obama said he was "heartened".
"Citizens exercising their constitutional right to assemble, organise and have their voices heard by their elected officials is exactly what we expect to see when American values are at stake," he said in a statement, which did not mention Mr Trump by name.
- Reuters / BBC / RNZ