James B. Comey, Sally Yates and Preet Bharara were all law enforcement officials until President Trump fired them — and they were all investigating Trump or his administration at the time of their firing. (Peter Stevenson/The Washington Post)

President Trump has now fired three U.S. law enforcement officials who, at the time of their firings, were investigating his presidential campaign or administration.

Just 10 days into his presidency, Trump fired Acting Attorney General Sally Yates, who announced that the Justice Department would not defend the administration's executive order banning travel from seven Muslim-majority countries. At the time she was fired, Yates was also a key official involved in the investigation of national security adviser Michael Flynn. Yates warned White House Counsel Donald McGahn that Flynn lied to Vice President Pence about his contacts with Russian Ambassador Sergey Kislyak, later testifying that she expected the White House to “take action” because Flynn was “compromised” and potentially susceptible to blackmail, in the Justice Department's estimation.

A little over a month later, Trump fired Preet Bharara, who had been the U.S. attorney for the Southern District of New York since 2009. Bharara was reportedly investigating Rep. Tom Price, then Trump's nominee for Health and Human Services secretary. It was a surprising move because in the weeks after the election, Trump met with Bharara and asked him to stay in his post. Bharara was fired March 11 after refusing to resign.

Then, on May 9, FBI Director James B. Comey was fired. He was in charge of the FBI's investigation into Russian interference in the 2016 election, and on March 20, he testified that the investigation included looking at contacts between the Trump campaign and Russian officials.

It's hard to say that the three officials were fired specifically because they were investigating Trump. In Yates's case, it seemed obvious she'd be fired as soon as she defied Trump's travel ban order; Bharara was set to be one of just a few U.S. attorneys who kept their posts from the Obama administration; and politicians on both sides of the aisle had called for Comey's resignation at various times since the election.

But in all three firings, there's a common thread: They were investigating Trump, his administration or campaign. And when firing the people who investigate the president becomes a pattern, it starts to look like Trump wants to avoid being investigated at all.