5 November 2014
Last updated at 07:52
Please turn on JavaScript. Media requires JavaScript to play.
Rajini Vaidyanathan looks back at how the night unfolded
The Republicans have won control of the Senate in the US mid-term elections, increasing their power in the final two years of Barack Obama's presidency.
The party won in Arkansas, Colorado, Iowa, Montana, North Carolina, South Dakota and West Virginia.
And it is expected to post more gains as votes are counted in other states.
Republican Senator Mitch McConnell, poised to lead the chamber, said the result was a vote against "a government that people can no longer trust".
In the mid-terms, so-called because they fell half way into Mr Obama's second four-year term in office, about one-third of the Senate, the entire House of Representatives, 36 of 50 state governors, and countless state and local offices were up for election.
Continue reading the main story '; spinnerHolder.style.backgroundColor = '#fff'; spinnerHolder.appendChild(spinner); link.parentNode.appendChild(spinnerHolder); }, handleIframeLoad: function (startIframing) { // IMPORTANT: Had to make this an onload because the // polyfilling and jquery on one page causes issues window.addEventListener('load', function () { startIframing(); }, true); if (this.elm.onload) { this.elm.onload = startIframing; } // Bug in IE7 means onload doesn't fire when an iframe // loads, but the event will fire if you attach it correctly else if ('attachEvent' in this.elm) { this.elm.attachEvent('onload', startIframing); } }, decideHowToTalkToIframe: function (href) { if (window.postMessage) { // if window.postMessage is supported, then support for JSON is assumed var uidForPostMessage = this.getPath(href); this.uidForPostMessage = this.getPath(href); this.setupPostMessage(uidForPostMessage); } else if (href.search(window.location.protocol + '//' + window.location.hostname) > -1) { this.setupIframeBridge(); } else { this.data.height = staticHeight; this.elm.scrolling = 'yes'; } }, onBbcDomain: function () { return window.location.host.search('bbc.co') > -1; }, setupPostMessage: function (uid) { var iframeWatcher = this; window.addEventListener('message', function (e) { iframeWatcher.postMessageCallback(e.data); }, false); }, postMessageCallback: function (data) { if (this.postBackMessageForThisIframe(data)) { this.processCommunicationFromIframe( this.getObjectNotationFromDataString(data) ); if (this.istatsInTheData()) { this.addToIstatsQueue(); this.emptyThisIstatsQueue(this.istatsQueue); } } }, postBackMessageForThisIframe: function (data) { return data && (data.split('::')[0] === this.uidForPostMessage); }, getObjectNotationFromDataString: function (data) { return JSON.parse(data.split('::')[1]); }, istatsInTheData: function () { return this.data.istats && this.data.istats.actionType; }, addToIstatsQueue: function () { this.istatsQueue.push({ 'actionType': this.data.istats.actionType, 'actionName': this.data.istats.actionName, 'viewLabel': this.data.istats.viewLabel }); }, setupIframeBridge: function () { var iframeWatcher = this; window.setInterval(function () { iframeWatcher.iFrameBridgeCallback(); }, iframeWatcher.updateFrequency); }, iFrameBridgeCallback: function () { if (this.elm.contentWindow.iframeBridge) { this.processCommunicationFromIframe(this.elm.contentWindow.iframeBridge); this.emptyThisIstatsQueue(this.elm.contentWindow.istatsQueue); } }, processCommunicationFromIframe: function (data) { this.data = data; this.setDimensions(); this.getAnyInstructionsFromIframe(); }, istatsQueueLocked: false, emptyThisIstatsQueue: function (queue) { var istatCall; if (this.istats && queue) { this.istatsQueueLocked = true; for (var i = 0, len = queue.length; i -1); }, getIframeContentHeight: function () { if (this.data.height) { this.lastRecordedHeight = this.data.height; } return this.lastRecordedHeight; }, setDimensions: function () { this.elm.width = this.elm.parentNode.clientWidth; this.elm.height = this.getIframeContentHeight(); }, getAnyInstructionsFromIframe: function () { if ( this.data.hostPageCallback && (!this.iframeInstructionsRan) ) { /* jshint evil:true */ eval('var func = ' + this.data.hostPageCallback); func(); this.iframeInstructionsRan = true; } }, getPath: function (url) { var urlMinusProtocol = url.replace('http://', ''); return urlMinusProtocol.substring(urlMinusProtocol.indexOf('/')).split('?')[0]; }, getWindowLocationOrigin: function () { if (window.location.origin) { return window.location.origin; } else { return window.location.protocol + '//' + window.location.hostname + (window.location.port ? ':' + window.location.port : ''); } } }; var iframe = new IframeWatcher('responsive-iframe-54430993'); })();
Throughout the campaign, Republicans focused on voter dissatisfaction with Mr Obama, a Democrat, describing the vote as a referendum on his presidency.
As the first results came in late on Tuesday, it became clear they had made convincing gains in the chamber.
With the votes still being counted in many states, the Republican Party easily won the six seats it needed to win control of the Senate.
The party now controls 52 seats, and is tipped to win more.
Analysis, Jon Sopel, BBC North America editor
Barack Obama's unpopularity in the run-up to these mid-term elections is hard to exaggerate. One of the things that is lost in the big picture of the night is some of the sidebar poll findings - the American people are fed up with all their politicians. It's not just the occupant of the White House, though as Harry Truman most famously noted, the buck stops with the president.
Mitch McConnell will be conscious of that, and will know that in two years' time, when it is not just the Senate but the presidency in play, the American people could be venting their spleen on him. Be fearful of the blame game.
That leaves the Kentucky senator with some important tactical decisions to make.
Sopel: Obama's mid-term headache
Mitch McConnell: DC insider with a mission
Please turn on JavaScript. Media requires JavaScript to play.
Rajesh Mirchandani explains the mid-term election results and what they mean for the Obama presidency
As well as taking the Senate, the Republicans are projected to increase their majority in the House of Representatives to levels not seen since before World War Two.
They also made gains among the 36 governorships up for re-election.
When the new Congress is sworn in in January, it will mark the first time the Republicans have held both chambers since 2006.
They will now have the power to complicate, if not block completely, Mr Obama's agenda in the last two years of his tenure in the White House.
Control of the Senate will also enable the Republicans to stymie his ability to name new federal judges, cabinet members and senior government officials.
Please turn on JavaScript. Media requires JavaScript to play.
"We are heading to Washington, and we are going to make them squeal" - successful Iowa Republican Senator-elect Joni Ernst
In addition to seats the party won from the Democrats, the Republicans retained seats in at least a dozen other states.
In Louisiana, neither of the top two candidates gained 50% of the vote, forcing a run-off election in early December.
In Virginia, Democrat Mark Warner was expected to retain his Senate seat amid a much tighter than expected race with Republican ex-lobbyist Ed Gillespie.
In other developments:
- Voters approved ballot measures legalising cannabis in Oregon and Washington DC, while Florida rejected a medical marijuana proposal
- Three states - South Dakota, Arkansas and Nebraska - approved increases in the minimum wage and a fourth - Alaska - was poised to do so as well
- Michael Grimm, under federal indictment for fraud, was re-elected to his House seat from New York City
- Republican Scott Brown has now lost Senate races in two states - New Hampshire on Tuesday and Massachusetts in 2012
- Utah's Mia Love has become the first black Republican woman to be elected to the House
One of the night's key early results came in Kentucky, where Mr McConnell, the Republican Senate minority leader, fended off Democrat Alison Lundergan Grimes.
Mr McConnell will now become the Senate majority leader, giving him control over the chamber's legislative agenda and floor proceedings.
"It wasn't about me or my opponent," he told supporters as he declared victory, "it was about a government that people can no longer trust."
Current Senate Majority Leader Harry Reid congratulated Mr McConnell in a short statement.
"The message from voters is clear: they want us to work together," said Mr Reid of Nevada, whose role in the soon-to-be Democratic minority remains uncertain. "I look forward to working with Senator McConnell to get things done for the middle class."
In the governor's races, Republican incumbents survived tough re-election battles in Florida, Maine and Wisconsin.
Two other results illustrate the breadth of the Republican sweep - the party's candidates won in Maryland and Massachusetts, two of the most Democratic-friendly states in the nation. Republican Bruce Rauner also won in Illinois - Mr Obama's home state - against incumbent Democratic Governor Pat Quinn.
Political gridlock in Congress has already reached historic levels and was a major concern among voters, with many expressing their frustration with the lack of progress on the most pressing issues facing the nation.
Analysts say the Republicans' victory could make the situation even worse ahead of the presidential poll in 2016.
Republican leaders have already pledged to move forward on their key policy priorities, pressing Mr Obama to negotiate on their terms
"It's time for government to start getting results and implementing solutions to the challenges facing our country, starting with our still-struggling economy," said Republican House Speaker John Boehner.