The results of Tuesday’s shocking Alabama Senate special election will likely reverberate far beyond its borders.

Democrats won a Senate seat in Alabama for the first time since 1992, with Democrat Doug Jones narrowly defeating embattled Republican Roy Moore.

The unexpected victory dealt a huge blow to the GOP. President Trump Donald John TrumpOmar fires back at Trump over rally remarks: 'This is my country' Pelosi: Trump hurrying to fill SCOTUS seat so he can repeal ObamaCare Trump mocks Biden appearance, mask use ahead of first debate MORE, who fully got behind Moore after many Republicans abandoned him following a series of sexual misconduct allegations, will take a hit with Moore’s loss. And Senate Republicans are down another vote amid their efforts to pass tax reform.

Jones’s victory also has political implications ahead of the 2018 midterm elections, since Democrats can now see the Senate majority in sight.

Here are five takeaways from Alabama’s historic special election:

Black voters propelled Jones

Jones campaign officials knew that they needed to boost black turnout to have a chance at an upset in a state as red as Alabama, and they got exactly that.

While black voters in Alabama make up about a quarter of the eligible voting population, exit polls found that about 30 percent of those who cast ballots were black. And Jones, who prosecuted two Ku Klux Klan members for the bombing of a black church in Birmingham during the civil rights era, won more than 90 percent of those votes.

ADVERTISEMENT

The campaign conducted a carefully orchestrated push to maximize black turnout in the final days. Jones spent the weekend with Sen. Cory Booker Cory Anthony BookerBipartisan praise pours in after Ginsburg's death DHS opens probe into allegations at Georgia ICE facility Democratic lawmakers call for an investigation into allegations of medical neglect at Georgia ICE facility MORE (D-N.J.) and Rep. Terri Sewell Terrycina (Terri) Andrea SewellRevered civil rights leader Rep. John Lewis lies in state in the Capitol House approves Clyburn proposal to rename voting rights bill after John Lewis John Lewis carried across Edmund Pettus Bridge for last time MORE (D-Ala.), stopping off at black churches and focusing specifically on the Birmingham area. NBA Hall of Famer Charles Barkley, an Alabama native, showed up for a rally on the eve of the election.

The turnout is made all the more impressive by the lack of state party infrastructure. But local leaders in the black community picked up the slack.

A new law passed by the legislature this year had the effect of expanding voting rights to felons whose voting status had previously been unclear. Local leaders in the black community had been registering voters with criminal records for months in light of the new law clarifying their status, and hit the ground on Tuesday to bring people to the polls.

Enough people cast write-in votes to make a difference

Some Republicans, most notably Alabama Sen. Richard Shelby Richard Craig ShelbySenate GOP eyes early exit Dems discussing government funding bill into February GOP short of votes on Trump's controversial Fed pick MORE, encouraged Alabamians to reject Moore in favor of casting a ballot for a write-in candidate.

It turns out enough Alabamians followed his lead to make a difference in the race.

Jones defeated Moore by 1.5 percentage points, while the write-in vote was slightly larger than the margin between the two major-party nominees. More than 22,000 vote, or 1.7 percent, were cast for a name not on the ballot.

It’s unclear who those voters would have supported if they didn’t go for a write-in candidate, but it likely siphoned away more votes from Moore. Moderate GOP voters who cast write-in ballots were likely looking for an alternative to Moore given the sexual misconduct allegations, but couldn’t stomach voting for a Democrat.

Bannon and Trump lose clout

Moore’s defeat was a massive blow to Trump and his former chief strategist, Breitbart News head Stephen Bannon.

Bannon stood by Moore through the mounting allegations against him, while Trump eventually backed Moore again after his polls improved weeks after the allegations first broke.

Both campaigned for the embattled candidate in the final days before the election, even as most Washington Republicans sought as much distance from Moore as possible.

Over Twitter, Trump blamed write-in votes. But it was the second consecutive Republican loss in a high-profile race, after Republican Ed Gillespie’s losing gubernatorial bid in Virginia last month. Despite several early special election victories, Trump’s political clout appears diminished, while his support for Moore will haunt him for some time.

The news is much worse for Bannon, who has been plotting challenges to every GOP Senate incumbent on the ballot in 2018, with the exception of Ted Cruz Rafael (Ted) Edward CruzTrump argues full Supreme Court needed to settle potential election disputes Press: Notorious RBG vs Notorious GOP The Hill's Morning Report - Sponsored by Facebook - Washington on edge amid SCOTUS vacancy MORE (Texas).

Bannon has been engaged in a bitter battle with Senate Majority Leader Mitch McConnell Addison (Mitch) Mitchell McConnellPelosi: Trump hurrying to fill SCOTUS seat so he can repeal ObamaCare Senate GOP aims to confirm Trump court pick by Oct. 29: report Trump argues full Supreme Court needed to settle potential election disputes MORE (R-Ky.). McConnell’s allies, who had been warning for months that Bannon was risking an easy GOP win in Alabama by backing Moore through the primary, were stocked with ample ammunition in the wake of Tuesday’s results.

“Not only did Steve Bannon cost us a critical Senate seat in one of the most Republican states in the country, but he also dragged the president of the United States into this fiasco,” said Steven Law, the president of the McConnell-aligned Senate Leadership Fund.

Bannon’s allies argued that the impact would be short-lived and that conservative voters would blame McConnell for throwing the election to a Democrat. But while the war between Bannon and McConnell is just getting started, Alabama dealt Bannon a humiliating defeat.

The Senate is in play in 2018

Democrats’ unexpected victory in Alabama has put the Senate in play for next year’s midterms.

As the party looks to flip 24 seats to take back the House, Democrats are also feeling more emboldened about their Senate prospects, even though they are still largely playing defense.

Democrats are defending more than twice the amount of seats as Republicans and need to protect 10 seats in states that Trump carried in 2016. The president won half of those seats by double-digit margins.

But Jones’s victory brings them one seat closer to taking back the majority. They only need to flip two more Senate seats, and Democrats are so far feeling confident about pulling off victories in GOP-held seats in Nevada and Arizona. If both those seats flip and Democrats successfully hold their line — a tall task — they could win back the majority.

And because Democrats over-performed in a deep-red seat, they are feeling more bullish about competing in other states that went big for Trump and haven’t elected a Democrat to the Senate in decades.

Former Housing and Urban Development Secretary Julian Castro, who is also a former mayor of San Antonio, tweeted at Sen. Ted Cruz (R-Texas) to “be afraid” ahead of his 2018 reelection race. Cruz will likely face Rep. Beto O’Rourke (D-Texas), who has proved to be a prolific fundraiser and has won endorsements from several progressive groups.

McConnell has a slimmer margin in the Senate

Jones’s victory also means that Republicans will be down one vote in the Senate. The party’s 51-49 majority means they can’t afford more than one defection during a vote.

The victory comes at a critical time for tax reform, which Republicans are trying to shepherd through conference committee so it can go to a final vote in both chambers.

Trump argued that Republicans needed a Moore victory so that he could vote with the party to pass the tax bill and finally deliver Republicans a major legislative success ahead of 2018.

It’s not clear whether Jones will be seated before the tax bill passes. McConnell said Tuesday before results came in that the election’s winner wouldn’t be seated this year, while Alabama officials say they need two weeks to certify the results.

If he’s seated before the tax bill can pass, Jones, who hasn’t indicated how he’d vote on it, gives Republicans less room for GOP defections. When they passed the initial Senate plan, only GOP Sen. Bob Corker Robert (Bob) Phillips CorkerHas Congress captured Russia policy? Tennessee primary battle turns nasty for Republicans Cheney clashes with Trump MORE (Tenn.) voted with Democrats against the measure.

If that were to happen again, Republicans couldn’t lose any more votes, and Vice President Pence would need to be called in to break the tie.