The Justice Department inspector general referred his finding that former FBI deputy director Andrew McCabe repeatedly misled investigators to Washington’s top federal prosecutor, who will determine whether McCabe should be charged with a crime, according to people familiar with the matter.

The referral to the U.S. Attorney’s Office for the District of Columbia occurred some time ago, after the inspector general concluded McCabe had lied to investigators or his boss, then-FBI Director James B. Comey, on four occasions, three of them under oath.

The U.S. attorney’s office met with McCabe’s legal team in recent weeks, though it was not immediately clear whether prosecutors there were conducting their own investigation or believed criminal charges are appropriate.

The referral raises the possibility that McCabe could be charged and jailed for his alleged misconduct — perhaps with Comey testifying as a witness against him. A referral to federal prosecutors, though, does not necessarily mean McCabe will be charged.

Michael R. Bromwich, McCabe’s lawyer, said in a statement: “We were advised of the referral within the past few weeks. Although we believe the referral is unjustified, the standard for an [inspector general] referral is very low. We have already met with staff members from the U.S. Attorney’s Office. We are confident that, unless there is inappropriate pressure from high levels of the Administration, the U.S. Attorney’s Office will conclude that it should decline to prosecute.”

President Trump, apparently referring to comments Comey made on CNN saying he could be called as a witness against McCabe, wrote on Twitter: “James Comey just threw Andrew McCabe ‘under the bus.’ Inspector General’s Report on McCabe is a disaster for both of them! Getting a little (lot) of their own medicine?”

The Justice Department, the inspector general’s office and the D.C. U.S. attorney’s office declined to comment Thursday.

Last week, Inspector General Michael Horowitz sent to Congress a report blasting McCabe. It says he inappropriately authorized the disclosure of sensitive information to the media, then lied repeatedly to investigators examining the matter. The report laid out in stunning detail allegations that McCabe had deceived investigators about his role in approving the disclosure, even as he lashed out at others in the FBI for leaks.

McCabe disputes many of the report’s findings and has said he never meant to mislead anyone.

Lying to federal investigators is a crime punishable by up to five years in prison, and some legal analysts speculated in the wake of the report that the inspector general seemed to be laying out a case for accusing McCabe of such conduct. The report alleged that one of McCabe’s lies “was done knowingly and intentionally” — a key aspect of the federal crime.

Attorney General Jeff Sessions fired McCabe from the FBI last month, just 26 hours before McCabe could retire, denying him some of his retirement benefits and reigniting the political firestorm that has long surrounded McCabe. Trump had repeatedly and publicly attacked McCabe, and McCabe alleged that his termination was politically motivated.

“This attack on my credibility is one part of a larger effort not just to slander me personally, but to taint the FBI, law enforcement, and intelligence professionals more generally,” McCabe said in a statement on the night he was removed from the FBI. “It is part of this Administration’s ongoing war on the FBI and the efforts of the Special Counsel investigation, which continue to this day. Their persistence in this campaign only highlights the importance of the Special Counsel’s work.”

McCabe would raise over a half-million dollars for a legal-defense fund through a GoFundMe page. His firing was recommended by the FBI’s Office of Professional Responsibility, based on the inspector general’s findings.

Separately this week, 11 House Republicans asked Sessions, FBI Director Christopher A. Wray and Utah U.S. Attorney John Huber to explore whether McCabe — along with a host of other Justice Department officials — committed crimes in their handling of the investigation of Hillary Clinton’s private email server, the probe into Russian interference in the 2016 election and other matters. Sessions has tasked Huber with looking into a range of GOP concerns.

The referral from the inspector general to the D.C. U.S. attorney’s office is thought to be far more serious, as inspector general investigators are nonpartisan lawyers and agents who look into wrongdoing for a living.

Comey — who appointed McCabe to his post as the No. 2 official in the FBI — stressed in his book released this week the importance of telling the truth to federal investigators and holding accountable those who do not. Asked about the referral during an appearance Thursday on CNN, Comey said he “could well be a witness” against McCabe and that he felt “conflicted” about the matter.

“I like him very much as a person, but sometimes even good people do things they shouldn’t do,” Comey said of his former deputy. He called the inspector general’s investigation an example of “accountability mechanisms working.”

Comey wrote in his book that as he weighed whether to charge Martha Stewart with such an offense in the early 2000s, he asked his deputy how many people in the United States had been indicted on charges of lying to federal investigators in the previous year. The deputy told him the answer was 2,000. Comey wrote that he told his staff to indict Stewart.

“People must fear the consequences of lying in the justice system or the system can’t work,” he wrote.

The disclosure of which McCabe was accused of authorizing came in October 2016, around the time Comey announced the FBI was resuming its probe of Clinton’s use of a private email server. At the time, Devlin Barrett — then a reporter at the Wall Street Journal — was preparing an article on the bureau’s handling of that case and another investigation into the Clinton Foundation. McCabe felt the article would portray him and the FBI unfairly, so he authorized two other FBI officials to give Barrett his account. Barrett now works for The Washington Post.

Background conversations with reporters in Washington are commonplace, and McCabe had the authority, as the FBI’s deputy director, to authorize them. But the inspector general came to conclude he was acting out of self interest and that it violated FBI policy.

Of particular concern was that McCabe effectively authorized the FBI to confirm an ongoing investigation into the Clinton Foundation by revealing a phone call in which he pushed back against a Justice Department official who warned that the bureau should not be taking overt steps in the case close to an election. McCabe asked the official, “Are you telling me that I need to shut down a validly predicated investigation?”

The inspector general wrote that Comey inquired with his deputy about the disclosure, and McCabe led him to believe he did not know who was responsible. McCabe’s team, though, disputes that and says emails between the two “clearly show that Mr. McCabe specifically advised Director Comey that he was working with colleagues at the FBI to correct inaccuracies in the story before it was published, and that they remained in contact through the weekend while the work was taking place.”

Inspector general investigators came to believe Comey, and they alleged that McCabe lied on three other occasions to them and the FBI’s inspection division. Comey said in an appearance on “The View” this week: “I still believe Andrew McCabe is a good person, but the inspector general found that he lied, and there’s severe consequences in the Justice Department for lying — as there should be throughout the government.”