Rudy Giuliani has apologized for accusing Hillary Clinton of saying she was in New York on Sept. 11, 2001, despite the fact that the Democratic nominee never said anything of the sort.

"I made a mistake. I'm wrong and I apologize," Giuliani, who was New York mayor in 2001, told the Associated Press.

On Wednesday, Giuliani was campaigning for Donald Trump when he accused Clinton, who was a New York senator at the time, of falsely saying she was in the state when the planes hit the twin towers.

"Don't tell me, if you said that, that you remember Sept. 11, 2001. I remember Sept. 11, 2001. Yes, yes, you helped to get benefits for the people that were injured that day. But I heard her say one day she was there that day. I was there that day. I don't remember seeing Hillary Clinton there,” Giuliani said Wednesday, according to AP.

But Clinton — who was in Washington on Sept. 11 because Congress was in session — didn’t say she was in New York.

Clinton did fly back to New York the day after the attack and toured ground zero with Giuliani and then-New York governor George Pataki.

Giuliani told the AP he had misheard Clinton at the most recent presidential debate and acknowledged his mistake after reviewing transcripts.