The Justice Department will review allegations that FBI Director James Comey mishandled the Hillary Clinton email investigation, the department’s inspector general Michael Horowitz announced on Thursday.

In his statement, the inspector general explained the he made the decision after members of Congress complained that actions taken by the FBI and Justice Department were politically motivated.

Last July, Comey was criticized by Republicans for declining to recommend charges related to Clinton’s use of a private email server during her time as secretary of state. And just 11 days before the 2016 presidential election, Comey wrote a letter reigniting the controversy—a move that Clinton blames for her election loss.

"Allegations that decisions regarding the timing of the FBI's release of certain Freedom of Information Act (FOIA) documents on October 30 and November 1, 2016, and the use of a Twitter account to publicize same, were influenced by improper considerations," Horowitz said in a statement.

Sources point to FBI office in New York City for Hillary Clinton leaks Show all 8 1 /8 Sources point to FBI office in New York City for Hillary Clinton leaks Sources point to FBI office in New York City for Hillary Clinton leaks NEW YORK, NY - NOVEMBER 4: A view of the Jacob K. Javits Federal Building, where the Federal Bureau of Investigation (FBI) has a field office on the 23rd floor, November 4, 2016 in New York City. FBI Director James Comey informed Congress last Friday that his agency was taking steps to review newly discovered emails relating to Democratic presidential candidate Hillary ClintonÃs private email server. (Photo by Drew Angerer/Getty Images) Getty Sources point to FBI office in New York City for Hillary Clinton leaks NEW YORK, NY - NOVEMBER 4: A view of the Jacob K. Javits Federal Building, where the Federal Bureau of Investigation (FBI) has a field office on the 23rd floor, November 4, 2016 in New York City. FBI Director James Comey informed Congress last Friday that his agency was taking steps to review newly discovered emails relating to Democratic presidential candidate Hillary ClintonÕs private email server. (Photo by Drew Angerer/Getty Images) Getty Sources point to FBI office in New York City for Hillary Clinton leaks NEW YORK, NY - NOVEMBER 4: A view of the Jacob K. Javits Federal Building, where the Federal Bureau of Investigation (FBI) has a field office on the 23rd floor, November 4, 2016 in New York City. FBI Director James Comey informed Congress last Friday that his agency was taking steps to review newly discovered emails relating to Democratic presidential candidate Hillary ClintonÕs private email server. (Photo by Drew Angerer/Getty Images) Getty Sources point to FBI office in New York City for Hillary Clinton leaks NEW YORK, NY - NOVEMBER 4: A view of the Jacob K. Javits Federal Building, where the Federal Bureau of Investigation (FBI) has a field office on the 23rd floor, November 4, 2016 in New York City. FBI Director James Comey informed Congress last Friday that his agency was taking steps to review newly discovered emails relating to Democratic presidential candidate Hillary ClintonÕs private email server. (Photo by Drew Angerer/Getty Images) Getty Sources point to FBI office in New York City for Hillary Clinton leaks NEW YORK, NY - NOVEMBER 4: A view of the Jacob K. Javits Federal Building, where the Federal Bureau of Investigation (FBI) has a field office on the 23rd floor, November 4, 2016 in New York City. FBI Director James Comey informed Congress last Friday that his agency was taking steps to review newly discovered emails relating to Democratic presidential candidate Hillary ClintonÕs private email server. (Photo by Drew Angerer/Getty Images) Getty Sources point to FBI office in New York City for Hillary Clinton leaks NEW YORK, NY - NOVEMBER 4: A view of the Jacob K. Javits Federal Building, where the Federal Bureau of Investigation (FBI) has a field office on the 23rd floor, November 4, 2016 in New York City. FBI Director James Comey informed Congress last Friday that his agency was taking steps to review newly discovered emails relating to Democratic presidential candidate Hillary ClintonÃs private email server. (Photo by Drew Angerer/Getty Images) Getty Sources point to FBI office in New York City for Hillary Clinton leaks NEW YORK, NY - NOVEMBER 4: A view of the Jacob K. Javits Federal Building, where the Federal Bureau of Investigation (FBI) has a field office on the 23rd floor, November 4, 2016 in New York City. FBI Director James Comey informed Congress last Friday that his agency was taking steps to review newly discovered emails relating to Democratic presidential candidate Hillary ClintonÃs private email server. (Photo by Drew Angerer/Getty Images) Getty Sources point to FBI office in New York City for Hillary Clinton leaks NEW YORK, NY - NOVEMBER 4: A view of the Jacob K. Javits Federal Building, where the Federal Bureau of Investigation (FBI) has a field office on the 23rd floor, November 4, 2016 in New York City. FBI Director James Comey informed Congress last Friday that his agency was taking steps to review newly discovered emails relating to Democratic presidential candidate Hillary ClintonÃs private email server. (Photo by Drew Angerer/Getty Images) Getty

Brian Fallon, the Clinton campaign’s former press secretary and former Justice Department spokesman, told The New York Times that the probe is necessary to restore the reputation of the FBI.