Jon Ossoff’s longshot dream of flipping an historically Republican congressional district has ended in failure - despite a massive effort by Democrats to send a humiliating message to Donald Trump.

For many voters and supporters of Mr Ossoff, the contest for the Georgia 6th congressional district turned into a referendum on the presidency of Mr Trump, and both sides spent a total of around $56m, making it the costliest race of its kind in US history.

But for all Mr Ossoff’s fresh-faced enthusiasm and talk of change, it was Republican Karen Handel who has apparently emerged victorious. By 10pm local time, CNN, NBC, the Associated Press and others were among those who had called the race the 55-year social conservative.

Republican candidate Karen Handel: 'I do not support a living wage'

Soon afterwards, Mr Ossoff appeared to speak to his supporters in the ballroom of the Westin Perimeter Hotel in Atlanta. He thanked them for their hard work and endeavour.

"This small community in Georgia has become the epicenter of politics for months now, and it has nothing to do with me - it's about you," he said, to cheers.

"The fight goes on. The fight is still alive."

The mood was considerably more upbeat a few miles away at Ms Handel's victory party. Indeed, by the time all the votes had been counted, Ms Handel won 51.9 per cent, compared to 48.1 per cent for her opponent.

Mr Ossoff was joined by his finance, Alisha Kramer (Reuters)

“A special thanks to the president of the United States of America,” she said, as her supporters chanted Donald Trump’s name. “It’s that fighting spirit, that perseverance and tenacity that I will take to Washington.”

Throughout the campaign Ms Handel he had stressed her local roots, and mocked the fact that Mr Ossoff, who grew up in the district, no longer lived there and was therefore not even able to vote for himself. She also pointed to the millions of dollars that had poured into Mr Ossoff’s campaign from outside of the state, something that could also have been said of her operation.

Voters said they had been attracted by her proven experience and her ability to get the job done.

"She has the credentials, a proven record," said Marilyn Watts, a real estate agent, who attended the Handel campaign rally.

Mr Trump was among the first to send his best wishes to a candidate he had campaigned with and whom had saved him from receiving the bloody nose that Democrats had hoped to land.

“Congratulations to Karen Handel on her big win in Georgia 6th. Fantastic job, we are all very proud of you,” he said.

It was indeed a good day for Mr Trump and the Republicans. In addition to bagging the battle for the Georgia 6th, the party also won a special election in South Carolina for a seat made vacant by Mick Mulvaney, who joined the cabinet to become Mr Trump’s director of the Office of Management and Budget

Donald Trump's first 100 days: in cartoons Show all 33 1 /33 Donald Trump's first 100 days: in cartoons Donald Trump's first 100 days: in cartoons Donald Trump's first 100 days in office were marred by a string of scandals, many of which caught the eye of the Independent's cartoonists Donald Trump's first 100 days: in cartoons Trump's first 100 days have seen him aggressively ramp up tensions with his nuclear rivals in North Korea Donald Trump's first 100 days: in cartoons Mr Trump has warned of a "major, major conflict" with the pariah nation lead by Kim Jong Un Donald Trump's first 100 days: in cartoons Mr Trump dropped the "mother of all bombs" on alleged ISIS-linked militants in Afghanistan, amid an escalation of US military intervention around the globe Donald Trump's first 100 days: in cartoons Mr Trump has been accused of falling short of the standards set by his predecessors in the Oval Office, including Franklin D Roosevelt Donald Trump's first 100 days: in cartoons The tycoon's ascension to the White House came at a time when the balance of power is shifting away from Western nations like those in the G7 group Donald Trump's first 100 days: in cartoons Western politicians, including the British Conservative party, have been accused of falling in line behind Mr Trump's proposals Donald Trump's first 100 days: in cartoons Brexit is seen to have weakened Britain, reducing still further any political will to resist American leadership Donald Trump's first 100 days: in cartoons Mr Trump's leadership has been marked by sudden and unexpected shifts in global policy Donald Trump's first 100 days: in cartoons Trump's controversial missile strike on Syria, which killed several citizens, was seen by some analysts as an attempt to distract from his policy elsewhere Donald Trump's first 100 days: in cartoons The President has also spent a large majority of his weekends golfing, rather than attending to matters of state Donald Trump's first 100 days: in cartoons Though free of gaffes, a visit from Chinese president Xi Jinping spotlighted trade tensions between the two states Donald Trump's first 100 days: in cartoons One major and unexpected setback came when Mr Trump's Healthcare Bill was struck down by members of his own party Donald Trump's first 100 days: in cartoons Mr Trump has been a figure of fun in the media, with his approval at record lows Donald Trump's first 100 days: in cartoons A string of revelations about Mr Trump's financial indiscretions did not mar his surge to the White House Donald Trump's first 100 days: in cartoons Outgoing President Barack Obama was accused of wiretapping Trump Tower by his successor in America's highest office Donald Trump's first 100 days: in cartoons The alleged involvement of Russian intelligence operatives in securing Mr Trump the presidency prompted harsh criticism Donald Trump's first 100 days: in cartoons The explosive resignation of Security Adviser Michael Flynn, who lied about his links to the Russian ambassador, was just one scandal to hit the President Donald Trump's first 100 days: in cartoons Many scandals, such as the accusation Barack Obama was implicated in phone-hacking, first broke on Mr Trump's Twitter feed Donald Trump's first 100 days: in cartoons Donald Trump's election provoked mass protests in the UK, with millions signing a petition to ban him from the country Donald Trump's first 100 days: in cartoons Donald Trump cited a non-existent terror attack in Sweden during a campaign rally Donald Trump's first 100 days: in cartoons Donald Trump stands accused of stoking regional tensions in Eastern Asia Donald Trump's first 100 days: in cartoons North Korea has launched a number of failed nuclear tests since Mr Trump took power Donald Trump's first 100 days: in cartoons Theresa May formally rejected the petition calling for Mr Trump to be banned from the UK Donald Trump's first 100 days: in cartoons When Mr Trump's initial so-called Muslim ban was struck down by a federal justice, the President mocked the 69-year-old as a "ridiculous", "so-called judge" Donald Trump's first 100 days: in cartoons A week after his inauguration, Theresa May met with Mr Trump at the White House Donald Trump's first 100 days: in cartoons Donald Trump's first days in office were marked by a hasty attempt to follow through on many of his campaign promises, including the so-called Muslim ban Donald Trump's first 100 days: in cartoons Donald Trump's decision to ban citizens of many majority-Muslim countries from the US sparked mass protests Donald Trump's first 100 days: in cartoons Revelations about Donald Trump's sexual improprieties were not enough to keep him from being elected President Donald Trump's first 100 days: in cartoons British PM Theresa May was criticised by many in the press for cosying up to the new President Donald Trump's first 100 days: in cartoons One of Mr Trump's top aides, Kelly Anne Conway, was mocked for describing mistruths as "alternative facts" Donald Trump's first 100 days: in cartoons British PM Theresa May was quick to demonstrate that her political aims did not hugely differ from Mr Trump's Donald Trump's first 100 days: in cartoons Donald Trump's inauguration, on 20 January 2017, sparked protests both at home and abroad

On the eve of election day, a final poll suggested the race between Mr Ossoff and Ms Handel was too close to call.