“As long as I am the attorney general, I will continue to discharge my duties with integrity and honor, and this department will continue to do its work in a fair and impartial manner according to the law and Constitution,” he said in a February 2018 statement. This stalemate resolved itself after the midterm elections, when a frustrated and weakened Trump finally fired Sessions, replacing him temporarily with Matthew Whitaker, a loyalist who served as Sessions’s chief of staff, and permanently with William Barr, who served as attorney general under George H.W. Bush, shielding him from the fallout of the Iran-contra scandal.

The overall pattern is clear. Trump wants to act with impunity, breaking the law if he needs or even just wants to. His appointees, who share his goals but not his methods, resist. He scolds and attacks them until they resign, replacing them with loyalists who may actually bend to his will.

Rex Tillerson was replaced by Mike Pompeo, then serving as director of the C.I.A. Unlike Tillerson, who attempted to contain Trump’s worst instincts, Pompeo has been willing to say or do nearly anything to stay in Trump’s favor. It’s why he would echo the president’s widely criticized flattery of Kim Jong-un and the North Korean government.

Trump says that Kevin McAleenan, until now the commissioner of Customs and Border Protection, will take over for Nielsen as acting secretary of Homeland Security. Like Nielsen, McAleenan backs the president’s harsh border policies. He defended border patrol agents after they used tear gas on hundreds of migrants, including women and children, who tried to enter the United States near Tijuana, Mexico. Some attorneys say it’s unclear if Trump can elevate McAleenan, since the laws regarding succession point to under secretary for management Claire Grady as next-in-line as acting director.

For a more permanent replacement, Trump is reportedly considering Ken Cuccinelli, the former Virginia attorney general turned conservative television personality, and Kris Kobach, the former Kansas secretary of state notorious for his aggressively anti-immigrant policies.

With either choice, Trump would affirm the pattern of his administration so far, jettisoning people who act as if they were accountable to the public and replacing them with people who above all are loyal to Trump, willing to go in the “tougher” — and possibly illegal — direction he demands.