The polls have closed in Alabama and Democrat Doug Jones has defeated embattled Republican nominee Roy Moore.
Moore had been the subject of sexual misconduct allegations from his 30s throughout the campaign and has been the topic of national discussion for months.
The Associated Press called the race, with Jones earning 49.5 percent of the vote and Moore 48.9 percent with 91 percent of precincts reporting.
Jones will replace Republican Jeff Sessions, who stepped down from the seat to become attorney general.
President Donald Trump tweeted his congratulations to Jones, saying that a “win is a win” and that Republicans will have their chance to regain the seat “in a very short period of time”.
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