Former New York Congressman Michael Grimm has backed away from President Trump's former chief strategist, Steve Bannon, after he looked to work with Bannon in October on Grimm's election bid.

The fallout Wednesday stems from the president blasting his former adviser in response to Bannon's comments released in excerpts of an upcoming book by writer Michael Wolff that portray Trump as an undisciplined man who did not actually want to win the White House. In the book, Bannon had also called Donald Trump Jr.'s contact with a Russian lawyer "treasonous."

"I strongly denounce the comments by Steve Bannon as quoted by Michael Wolff. They are baseless attacks against the President's family, beyond disturbing, and I fully support our Commander in Chief. I am running for Congress to help our President advance his Pro-America agenda which has and will continue to help the hard-working people here in Staten Island and Brooklyn," Grimm said in a statement Wednesday night.

In early-October, Grimm — who is running for his old seat in the House of Representatives — appeared to have won Bannon's support for his campaign, as the former congressman had posted a photo of himself with Bannon after a meeting, with the caption "Game on."

Campaign spokesman Michael Caputo told NY1 on Oct. 4 that, while it was not an official endorsement, the two had a positive meeting and discussed how they could work together.

But from the start of his election bid, Grimm has thrown his support behind the president, who denounced Bannon on Wednesday.

Hitting back at his former aide via a formal White House statement, Trump insisted Bannon had little to do with his victorious campaign and "has nothing to do with me or my Presidency."

"When he was fired, he not only lost his job, he lost his mind," Trump said about Bannon, who had helped deliver the presidency to Trump.