In a matter of six months, Mike Johnson has gone from accidental House speaker to one of the most consequential House speakers in a generation.

That’s not hyperbole. Despite presiding over one of the smallest and most restive House majorities in history, he has managed to navigate the warring factions of his party to pass a raft of critical legislation, including a government funding bill that averted a catastrophic shutdown; reauthorization of a foreign surveillance law critical to disrupting terrorist attacks; a lethal-aid package for Ukraine that staved off imminent defeat, plus vital military assistance for Israel and Taiwan; legislation that allows the United States to seize Russian assets and use them to aid Ukraine; bipartisan legislation to ban TikTok in the United States if it is not sold to a new parent company that is not Chinese within about a year; and new sanctions against China, Iran and Russia. And in the wake of those legislative victories, accomplished with bipartisan support, he defeated an effort by Rep. Marjorie Taylor Greene (R-Ga.) to oust him, which was rejected by a 359-43 vote amid a cacophony of boos from her GOP colleagues.

Name me another speaker who has accomplished so much, in so short a time, against such overwhelming odds.

He wasn’t even supposed to be in the job. Johnson was chosen only after a three-week standoff in which three other nominees failed. When he ascended to the speaker’s post, few in Washington had even heard of him. Sen. Susan Collins (R-Maine) told CNN she planned to do a Google search to learn who he was. Johnson had never even chaired a congressional committee and went from serving as vice chairman of the House Republican Conference (the No. 6 leadership position) to second in the line to the presidency virtually overnight.

From the moment Johnson assumed the speakership, many assumed his job was doomed. Just weeks after he was elected, Politico reported that Republicans were “already asking behind closed doors whether Johnson might meet the same fate as the deposed [former speaker Kevin] McCarthy.” Later, he was described as a “leader in name only” whose “grip on his fractious conference appears to be slipping” and who was having a “bad, very, very bad, awful time leading the House Republican conference,” which had become a “hot mess, devoid of ideas and accomplishments.”

No one is saying that today.

Getting there was not easy. After Johnson took office, his already historically small majority narrowed further because of GOP resignations, leaving him little room for error in steering his party to pass controversial legislation. He moved deliberately and sequentially from bill to bill — tackling government spending first, then foreign-surveillance reauthorization, before finally moving forward on Ukraine aid.

The Biden administration has sought to claim credit for getting Johnson on board with Ukraine aid. But while Johnson had voted against previous aid packages, he had been clear from the beginning of his speakership on his intention to pass aid to Israel, Ukraine and Taiwan. In his speech accepting the gavel (which he wrote himself), he declared, “We stand at a very dangerous time. … Turmoil and violence have rocked the Middle East and Eastern Europe. We all know tensions continue to build in the Indo-Pacific. The country demands strong leadership of this body, and we must not waver.” The next day, he told Sean Hannity, “We can’t allow Vladimir Putin to prevail in Ukraine, because I don’t believe it would stop there, and it would probably encourage and empower China to perhaps make a move on Taiwan. … We’re not going to abandon them.”

But first, he had to lay the groundwork with his conference. He invited members to attend intelligence briefings showing how, without U.S. aid to Ukraine, Russian forces would begin breaking through the nation’s defenses, carpet-bombing Ukrainian cities, slaughtering civilians and marching toward Kyiv. To his chagrin, many anti-Ukraine Republicans declined to attend. “They’re making monumental decisions with global implications not completely informed about the facts,” he told Ben Shapiro before the vote. “I think that’s dereliction of duty.”

Johnson also needed to win the support of Donald Trump, who could have killed the Ukraine aid package if he had come out against it. Many — including Greene and Hungarian Prime Minister Viktor Orban — were lobbying Trump to do just that. But Trump wisely backed Johnson against the anti-Ukraine faction of the GOP, appearing side by side with him at a news conference at Mar-a-Lago and declaring that Johnson was “doing a really good job.” Trump’s hard-won endorsement was critical.

As the moment of truth arrived, Johnson was the epitome of resolve. “History judges us for what we do,” he declared at the Capitol. “This is a critical time right now. ... I can make a selfish decision and do something that is different, but I’m doing here what I believe to be the right thing. … I think providing lethal aid to Ukraine right now is critically important. … I’m willing to take personal risk for that.”

Johnson did exactly that. He put his speakership on the line — knowing that his predecessor had been ousted for less — in order to do the right thing. That is the essence of leadership.

“I never aspired to be speaker of the House,” Johnson recently said. “This was not on my bucket list.” Though he might not have aspired to the job, he has become one of the most courageous and effective leaders to hold it in modern times.

Not bad for an accidental speaker.

Follow Marc A. Thiessen @marcthiessen on X (formerly Twitter).