Former White House strategist Steve Bannon was waiting in the wings and prepared to run for president if Donald Trump resigned or was impeached, according to a report Monday.

“In such a scenario, who better to succeed Trump than the man who got him elected?” Josh Green wrote in a paperback version of his book “Devil’s Bargain,” Politico reported, citing an excerpt.

Bannon shared his idea with a few close friends, and even considered creating a new political party that he would call the National Union Party, the report said.

That was the name of the temporary party that Abraham Lincoln and the Republican Party had adopted in 1864 to attract War Democrats and Unionists.

As Bannon saw it, his new faction would unite populists on each end of the political spectrum, believing that a “true devotee of right-wing nationalism — rather than a charlatan like Trump — could succeed where his predecessor failed,” Green wrote in the best-selling book about the Trump campaign.

Bannon left the Trump White House in August 2017 after a turbulent tenure in the West Wing and returned to once again head up the far-right website Breitbart.

But comments he made in another political best-seller — Michael Wolff’s tell-all about the Trump administration, “Fire and Fury: Inside the Trump White House” — led to a falling out with the president and Bannon being sacked from Breitbart in January.

In the book, Bannon lashed out at Trump’s family, including daughter Ivanka and son-in-law, Jared Kushner.

He also referred to Donald Trump Jr.’s June 2016 meeting at Trump Tower with a Kremlin-connected Russian lawyer as “treasonous.”

After his remarks went public, the president said that “when he was fired, he not only lost his job, he lost his mind.”

The paperback version of “Devil’s Bargain” will be released Tuesday.