Pictures: America re-elects Barack Obama as president
After a mega-race that began nearly two years ago, and cost more than $2 billion, America has chosen Barack Obama to remain in charge.
After a race that began nearly two years ago, and cost more than $2 billion, millions of Americans queued up to decide whether to re-elect the Democratic president Obama or to give the job to Republican Mitt Romney.
It was not just in the US that people gathered to follow the results, with election night parties being held in a number of cities, like this one in London!
On the east coast of America, super storm Sandy disrupted voting plans. Temporary polling stations like this one in New York were set up where original sites were destroyed or damaged.
People in California were able to turn up straight from the surf!
As the polls began to close the US waited to hear who would be the next president.
It was thought it would be a really close race, so both sides readied teams of lawyers for possible legal fights, especially in the critical state of Ohio where people are voting here.
Huge numbers of reporters, along with our very own Ricky, awaited results as polls suggested a neck-and-neck race.
In New York the Empire State Building was lit in blue and red to show how each party was getting on.
As polls across the country closed Mr Obama's supporters heard he had won key states Michigan and Pennsylvania, as well as others he had won in 2008.
Both candidates spoke to lots of people to try and persuade them to vote for their party. At a rally in Ohio, the president acknowledged complaints about how he had handled the economy but told voters "our work is not done yet".
It soon became clear that President Obama was going to win, as victory in Ohio meant he had secured the 270 votes in the Electoral College needed to win the race.
Republican supporters were upset - even though several swing states, including Florida and Virginia, hadn't been decided.
Obama won, despite doubts about how he has run the economy and an expensive campaign by his challenger Romney.
Romney, the former governor of Massachusetts, gave a speech saying: "The nation chose another leader, and so Ann and I join with you to pray for him and for this great nation."
At the end of a long day, President Obama took to the stage in Chicago with First Lady Michelle and daughters, Malia and Sasha, where he addressed supporters, encouraging them and the whole of the country to 'seize the future' together.
President Barack Obama has been re-elected for America's top job for another four years, beating Republican challenger Mitt Romney. America's first black president has won the 270 votes in the electoral college needed to win the race.
Romney criticised Obama's economic record, telling supporters in Virginia: "If you believe America should be on a better course, if you're tired of being tired... then I ask you to vote for real change."
Romney's supporters were also hopeful as they heard he had won solid Republican states, as well as stealing Indiana from Obama.