Hillary Clinton was interviewed by the FBI about her use of a private email server during the time she was secretary of state, her campaign said Saturday, as federal investigators neared the end of the probe that has hung over her presidential campaign.

Clinton, the presumptive Democratic presidential candidate, gave a voluntary interview for 3 1/2 hours on Saturday morning at FBI Headquarters in Washington, her campaign said.

"She is pleased to have had the opportunity to assist the Department of Justice in bringing this review to a conclusion," Clinton spokesman Nick Merrill said. "Out of respect for the investigative process, she will not comment further on her interview."

The existence of a personal account that Clinton used for State Department business came to light because of a Congressional committee investigating the 2012 attack on the U.S. compound in Benghazi, Libya, that demanded Clinton's emails in 2014. 

DEM 2016 Clinton Emails

Clinton testifies in Washington before the Senate Foreign Relations Committee hearing on the Benghazi attack on the U.S. diplomatic mission that killed four Americans. The existence of Clinton's emails and servers came to light at the hearings. (Pablo Martinez Monsivais/Associated Press)

Not only did Clinton use a personal email address, but she used her own personal server, not Hotmail or Gmail, that she set up at her New York home. An independent audit states her actions broke State Department rules.

The interview was expected and it does not suggest that she or anyone else is likely to face prosecution. Some legal experts view criminal prosecution as exceedingly unlikely. The interview may indicate that the Justice Department's yearlong probe is drawing to a close.

Investigation could hamper Clinton's campaign

But the ongoing investigation represents a major risk for Democrats as Clinton is merely four weeks away from being formally nominated as the party's presidential candidate.

Donald Trump, the Republican Party's presumptive nominee, has seized on the email issue and repeatedly said the probe undermines Clinton's fitness for office. Trump has called his opponent, "Crooked Hillary," and said she cannot be trusted in the White House.

In a tweet posted Saturday, Trump says "it is impossible for the FBI not to recommend criminal charges against Hillary Clinton. What she did was wrong!"

GOP 2016 Trump

Presumptive Republican presidential nominee Donald Trump says the FBI's probe into Clinton's emails undermines her fitness for office. (David Zalubowski/Associated Press)

The investigation also poses an unwelcome distraction just as she has vanquished primary rival Bernie Sanders. Clinton holds a huge fundraising advantage over Trump and polls show her well-placed to become America's first female president even as many voters question her trustworthiness.

The questioning came a day after Attorney General Loretta Lynch, under scrutiny for an impromptu meeting with Bill Clinton on her plane in Phoenix, said that she intended to accept the findings and recommendations of career prosecutors who have spent months investigating the case.