United States President Donald Trump has sacked acting Attorney-General Sally Yates, accusing her of "betraying the Department of Justice" after she directed her attorneys not to defend his controversial executive refugee and immigration ban.

Key points: White House accused Ms Yates of "betraying the Department of Justice"

White House accused Ms Yates of "betraying the Department of Justice" Ms Yates appointed by Obama Administration, Senator Jeff Sessions likely eventual replacement

Ms Yates appointed by Obama Administration, Senator Jeff Sessions likely eventual replacement White House spokesman said American diplomats opposed to travel ban can "get with the program or they can go"

Ms Yates had said she was not convinced Mr Trump's travel ban was lawful.

"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," Ms Yates said.

"At present, I am not convinced that the defence of the executive order is consistent with these responsibilities, nor am I convinced that the executive order is lawful."

Who is Sally Yates? Appointed by Barack Obama as first female US attorney in 2010 for the Northern District of Georgia

Appointed by Barack Obama as first female US attorney in 2010 for the Northern District of Georgia Confirmed as deputy Attorney-General in 2015, became acting Attorney-General when Loretta Lynch resigned on Donald Trump's inauguration day

Confirmed as deputy Attorney-General in 2015, became acting Attorney-General when Loretta Lynch resigned on Donald Trump's inauguration day Prosecuted several white-collar fraud and political corruption cases

Prosecuted several white-collar fraud and political corruption cases Lead prosecutor of Eric Rudolph, whose bomb planted at the 1996 Olympic Games in Atlanta, Georgia killed one person and injured more than 150 others

Lead prosecutor of Eric Rudolph, whose bomb planted at the 1996 Olympic Games in Atlanta, Georgia killed one person and injured more than 150 others In a 2015 speech, she said: "I draw inspiration not only from my grandmother, who was one of the first women to pass the Georgia bar exam, but also my father and grandfather, both lawyers and later judges, who recognised the power of the law to right wrongs."

A statement from the White House confirmed Mr Trump had "relieved Ms Yates of her duties", accusing her of "betraying the Department of Justice".

"The Acting Attorney-General, Sally Yates has betrayed the Department of Justice by refusing to enforce a legal order to protect citizens of the United States," the statement read.

"Ms Yates is an Obama Administration appointee who is weak on borders and very weak on illegal immigration.

"It is time to get serious about protecting our country.

"Calling for tougher vetting for individuals travelling from seven dangerous places is not extreme."

The Democratic appointee's directive was only ever likely to be temporary, given that Senator Jeff Sessions, Mr Trump's pick for Attorney-General, will likely move to uphold the President's policy.

Mr Sessions is awaiting Senate confirmation.

US attorney for the Eastern District of Virginia Dana Boente was sworn in as acting Attorney-General about 9:00pm Monday (local time) to replace Ms Yates in the meantime.

Dana Boente has been named as Sally Yates's replacement. ( AP: Evan Vucci )

Still, Ms Yates's abrupt decision deepened the chaos surrounding Mr Trump's order.

At least three top national security officials — Defence Secretary James Mattis, Homeland Security Secretary John Kelly and Rex Tillerson, who is awaiting confirmation to lead the State Department — have told associates they were not aware of details of the directive until around the time Mr Trump signed it.

Leading intelligence officials were also left largely in the dark, according to US officials.

Tennessee senator Bob Corker, the top Republican on the Senate Foreign Relations committee, said that despite White House assurances that congressional leaders were consulted, he learned about the order in the media.

The fallout was immediate, with friction growing between Mr Trump and his top advisers and a rush by the Pentagon to seek exemptions to the policy.

The White House approach also sparked an unusually public clash between a president and the civil servants tasked with carrying out his policy.

Mr Trump also appointed Thomas D. Homan acting director of US Immigration and Customs Enforcement (ICE), an office under the umbrella of the Department of Homeland Security (DHS).

Newly appointed DHS secretary, John Kelly, announced in a statement Mr Homan had been given the role, without mentioning the outgoing director, Daniel Ragsdale.

"I am confident that he will continue to serve as a strong, effective leader for the men and women of ICE. I look forward to working alongside him to ensure that we enforce our immigration laws in the interior of the United States consistent with the national interest," Mr Kelly said.

The ICE is tasked with protecting the US from cross-border crime and illegal immigration that threaten national security and public safety.

Protests all around the world have fought against Mr Trump's order. ( Reuters )

White House divide deepens as Trump doubles down

A large group of American diplomats circulated a memo voicing their opposition to the order, which temporarily halted the entire US refugee program and banned all entries from seven Muslim-majority nations for 90 days.

In a combative response, Mr Spicer challenged those opposed to the measure to resign.

"They should either get with the program or they can go," Mr Spicer said.

The blowback underscored Mr Trump's tenuous relationship with his own national security advisers, many of whom he met for the first time during the transition, as well as with the Government bureaucracy he now leads.

While Mr Trump outlined his plan for temporarily halting entry to the US from countries with terror ties during the campaign, the confusing way in which it finally was crafted stunned some who have joined his team.

Mr Mattis, who stood next to Mr Trump during the signing ceremony, is said to be particularly incensed.

A senior US official said Mr Mattis, along with Joint Chiefs chairman Joseph Dunford, was aware of the general concept of Mr Trump's order, but not the details.

US officials and others with knowledge of the Cabinet's thinking insisted on anonymity in order to disclose the officials' private views.

Sorry, this video has expired Nine further people were released from Dallas airport detention overnight

AP/ABC