The Justice Department will not charge former FBI Deputy Director Andrew McCabe.

Jacquelyn Martin/AP

Updated at 1:37 p.m. ET

The Justice Department announced Friday that former FBI Deputy Director Andrew McCabe will not be charged following an allegation by the department's inspector general that he lied to investigators about a leak to the media.

In a letter to McCabe's attorneys, the department said that "based on the totality of the circumstances and all of the information known to the government at this time, we consider the matter closed."

Trump has repeatedly criticized McCabe online and in public remarks. McCabe has long been the target of Republican leaders who allege political bias within the FBI.

McCabe's wife ran for the state legislature in Virginia as a Democrat, prompting early attacks that he might be going easy on Hillary Clinton. Later, McCabe was fired after investigators concluded he lacked candor about an episode involving the release of information to a reporter.

McCabe always has maintained he has done nothing wrong and called himself the victim of political vengeance.

"At long last, justice has been done in this matter," McCabe's lawyers said on Friday.

"We said at the outset of the criminal investigation, almost two years ago, that if the facts and the law determined the result, no charges would be brought," they said in a statement. "We are pleased that Andrew McCabe and his family can go on with their lives without this cloud hanging over them."

The allegations against McCabe stemmed from a Justice Department Office of Inspector General's report, which found that McCabe "lacked candor" when he told investigators that he did not know who authorized an aide to talk to the Wall Street Journal about the FBI investigation into the Clinton Foundation.