| Ms Yates, right, was appointed by Barack Obama and remained in an acting role |
Donald Trump has fired the acting US attorney general, after she questioned the legality of his immigration ban.
Dana Boente, US attorney for the Eastern District of Virginia, replaced her as acting attorney general.
He has directed the department to enforce Mr Trump's order.
In a statement, the White House said Ms Yates had "betrayed" the department. Mr Trump's order temporarily banned nationals from seven Muslim-majority countries from entering the US, and sparked street protests in the US and abroad.
- Thousands join anti-Trump protests
- Diplomats' dissent falls on deaf ears
- Amateur hour at the White House?
Within hours, the White House announced: "President Trump relieved Ms Yates of her duties."
She had "betrayed the department of justice by refusing to enforce a legal order designed to protect the citizens of the United States", a statement from the press secretary said.
It also described her as "weak on borders and very weak on illegal immigration".