Democrat Doug Jones had a historic night Tuesday, with many polls and projections saying that he won a special election in Alabama to secure the state’s open Senate seat.

Jones preached unity in his victory speech.

"I have always believed that the people of Alabama had more in common than divided us. We have shown not just around the state of Alabama, but we have shown the country the way that we can be unified."

His opponent, Judge Roy Moore, did not concede on Tuesday night, saying his campaign will wait to see the results and determine whether they need a recount.

"We have to wait on God and let this process play out," he said.

But Jones’ projected win inspired a wealth of responses from across social media.

President Donald Trump congratulated Jones but vowed for a Republican comeback.

Congratulations to Doug Jones on a hard fought victory. The write-in votes played a very big factor, but a win is a win. The people of Alabama are great, and the Republicans will have another shot at this seat in a very short period of time. It never ends! — Donald J. Trump (@realDonaldTrump) December 13, 2017

Attorney General Eric Holder also shared his thoughts.

Doug Jones wins!! In spite of suppression efforts. In spite of Trump. In spite of Bannon. In spite of fear mongering. Virginia, New Jersey, Alabama = trend. See you in 2018 —- in every race in every part of this great nation. — Eric Holder (@EricHolder) December 13, 2017

Congressional leaders, including Arizona Sen. Jeff Flake, shared their thoughts on social media.

Decency wins — Jeff Flake (@JeffFlake) December 13, 2017

Congratulations to @GDouglasJones for his great victory. Congratulations to the people of Alabama for doing what few thought they would do. This is a victory not just for Jones and Democrats. It is a victory for justice and decency. — Bernie Sanders (@BernieSanders) December 13, 2017

I look forward to seeing Senator-elect Jones take his seat in the US Senate! #ALSEN — Nancy Pelosi (@SpeakerPelosi) December 13, 2017

We elected a Democrat in deep red Alabama tonight. Why? Because @GDouglasJones was a great candidate. We had the right message. We had the wind in our sails. And we fought our hearts out. — Elizabeth Warren (@ewarren) December 13, 2017

Chuck Schumer releases statement on Doug Jones victory:



“Doug Jones will be an outstanding Senator who will represent Alabama well. He was a great candidate and will be an even better Senator." pic.twitter.com/PAtb2v4DQK — NBC Politics (@NBCPolitics) December 13, 2017

Congratulations to Senator-elect Doug Jones and thank you to the people of Alabama. Now let’s begin the hard work of healing this country. #ALSen — Mark Takano (@RepMarkTakano) December 13, 2017

Look forward to calling @GDouglasJones a colleague in Congress. Congratulations, Senator-Elect. The people of Alabama elected the better man and you’ll make them proud. #ALSEN — Rep. Eric Swalwell (@RepSwalwell) December 13, 2017

Welcome to the Senate Doug Jones! — Senator Bob Menendez (@SenatorMenendez) December 13, 2017

To all those in #Alabama who made the calls, knocked on doors, carried the clipboards, got out the vote, and never gave up, America thanks you. Our democracy thanks you. #AlabamaSenate https://t.co/AprIqLY1p4 — Ed Markey (@SenMarkey) December 13, 2017

Good wins over evil. Congratulations to Senator-Elect @GDouglasJones (D-AL). A victory for women and a strong message about what America won’t stand for. Look out @realDonaldTrump, @GOP, this is only the beginning. — Debbie Wasserman Schultz (@DWStweets) December 13, 2017

What an amazing night - congratulations to Senator-Elect Doug Jones! Now let’s get to work fighting for hardworking families across our country! — Rep. Cheri Bustos (@RepCheri) December 13, 2017

Today in Alabama we witnessed the triumph of dignity over partisanship and decency over Trumpism. The country will not forget that Alabama voted for hope and Trump sided with a suspected serial child sexual abuser who wanted to drag America backwards. — Chris Van Hollen (@ChrisVanHollen) December 13, 2017

Congratulations, @GDouglasJones! So proud to welcome you as Alabama’s newest U.S. Senator. This shows Democrats can win anywhere in 2018.https://t.co/nlXSd3qWDj — Kamala Harris (@KamalaHarris) December 13, 2017

https://twitter.com/MartinHeinrich/status/940788312297627648 I am grateful to the women who had the courage to come forward. Because of them and so many others like them, we are seeing meaningful change. I look forward to finding opportunities to work with Doug Jones in the Senate to support middle-class families. -SB — Sherrod Brown (@SenSherrodBrown) December 13, 2017

Public figures, including former Vice President Joe Biden, former President Bill Clinton and 2016 presidential hopeful Hillary Clinton, shared their thoughts as well on the historic victory.

Tonight, Alabama voters elected a senator who'll make them proud.



And if Democrats can win in Alabama, we can -- and must -- compete everywhere.



Onward! — Hillary Clinton (@HillaryClinton) December 13, 2017

Congratulations, Doug Jones. You were a great US Attorney, and you ran a terrific campaign. You deserve this win. It’s a win for the people of Alabama. — Bill Clinton (@BillClinton) December 13, 2017

Doug Jones. Thank you, Alabama. You’ve elected a man of incredible integrity, grit, and character. A fighter for working class and middle class Alabamians. He is going to make you proud in the Senate. — Joe Biden (@JoeBiden) December 13, 2017

Fifty years after the murders of Addie Mae Collins, Cynthia Wesley, Carole Robertson and Carol Denise McNair at the 16th Street Baptist Church it was Doug Jones who made sure that the last of their killers faced justice. Now, Doug is going to Washington, D.C. as a U.S. Senator. — Donna Brazile (@donnabrazile) December 13, 2017

The voices of bigotry and intolerance are loud, but tonight the people of Alabama were louder.



Congratulations Senator-elect Jones. #AlabamaSenateElection — Andrew Cuomo (@NYGovCuomo) December 13, 2017

Now that Doug Jones has won the #AlabamaSenate seat NO MORE MERRY CHRISTMAS! Only Hanukkah from now on. Ha Ha Ha! — Reza Aslan (@rezaaslan) December 13, 2017

Praying for Roy Moore. — Franklin Graham (@Franklin_Graham) December 12, 2017

Selma, Lord, Selma. It’s no coincidence that Selma, where blood was shed in the struggle for voting rights for Black people, pushed #DougJones ahead for good. #Alabama — Be A King (@BerniceKing) December 13, 2017

Celebrities responded to the news, too.

Thank you Alabama and thank you Doug Jones. https://t.co/o8NXvTrTUX — Ellen DeGeneres (@TheEllenShow) December 13, 2017

Roll Tide! — Steve Kerr (@SteveKerr) December 13, 2017

Utah State Sen. Jim Dabakis also cheered for Jones.

CNN just called it. Doug Jones, the Democrat, was just elected the US Senator from Alabama! UTAH, believe in 2018! #utpol — Jim Dabakis (@JimDabakis) December 13, 2017

Inconsistent poll results showed a narrow margin between the two candidates. Both candidates received help from their respective parties to try and squeak out the win. Trump robocalled for Moore, while former President Barack Obama did the same for Jones.