Former New York City Mayor Rudy Giuliani said Wednesday that a preemptive pardon of Hillary Clinton for mishandling classified information would "seal [President Barack] Obama's legacy as one of the worst presidents ever."

"Then he should also pardon [Kristian Saucier] who’s spending a year in jail taking pictures of the submarine," Giuliani told Fox News' Bill O'Reilly on "The O'Reilly Factor". "And he should pardon Petraeus and he should pardon [Gen. James] Cartwright."

SAILOR GETS YEAR IN PRISON FOR TAKING PHOTOS OF NUCLEAR SUBMARINE

Giuliani, an adviser to President-elect Donald Trump, did not rule out investigating Clinton if named attorney general in a Trump administration.

"There’s one tradition in America [which is] the election’s over, we forget about it. There’s another tradition in America, which is equal justice under the law. And it would depend on how bad the violations are."

FORMER GENERAL PLEADS GUILTY IN FALSE LEAK PROBE

The former New York mayor gave no indications of who would hold critical positions in a Trump administration, saying that campaign manager KellyAnne Conway would be "a good choice" for chief of staff, while New Jersey Gov. Chris Christie would be "fabulous" as head of the Department of Homeland Security.

Giuliani also described watching the election returns with the GOP nominee at Trump Tower.

"[Trump] was very calm. I think he realized the turning point [was] when the exit polls turned out to be so far off our own calculations," he said. "Once he saw Florida turn and he knew he had Ohio – I always believed if he won Florida and Ohio the rest will fall in."