
The leader of the largest party traditionally gets the first chance to form the government and become prime minister. But if no party has a majority, the sitting prime minister has the right to stay in office and try to win a confidence motion in parliament.
"The sitting prime minister and the incumbent government are given the first chance to create a majority that commands the confidence of the House of Commons, and if they fail to do that it passes to the leader of the opposition," top Labour politician Peter Mandelson told CNN.
Several high-profile incumbents lost their seats overnight, including former Home Secretary Jacqui Smith, of Labour; Northern Ireland First Minister Peter Robinson, leader of the Democratic Unionist party; and Liberal Democrat Lembit Opik, who had been in parliament for 13 years.
All had been implicated in last year's parliamentary expenses scandal. Robinson's loss could hurt the Conservatives, robbing them of a potential supporter in the Commons should the party need to form a coalition.
The Green Party, which favors environmental and social justice policies, gained its first-ever member of parliament when Caroline Lucas was elected in Brighton, in southern England.
There were some scenes of voter anger across the country over long lines to cast ballots or polling stations running out of ballot papers, but it was not immediately clear how widespread problems were.
Anger at polling stations

The United Kingdom's system of voting is "Victorian, antiquated, left over from an era when less people had to vote" and not designed to cope with mass participation, she said, adding that the system is now "at breaking point."
Liberal Democrat leader Nick Clegg expressed his anger after hundreds of voters were turned away from a polling station in his Sheffield constituency.
"I share the bitter dismay of many of my constituents who weren't able to exercise their democratic right to vote at this election," he said. "It is not right that hundreds found themselves unable to vote -- and that is something should never ever happen again in our democracy."
Clearly disappointed by his party's showing as results filtered in, he added: "This has obviously been a disappointing night for the lib-dems -- we haven't achieved what we hoped. But I think we conducted a positive campaign full of optimism."
It's very unusual for no party to get an absolute majority of seats in the Commons. The last time it happened, in 1974, voters were back at the polls within months.
After the election there will be 650 seats in the Commons, four more than in the previous parliament. Voters chose representatives for only 649 seats, however, because the death of a candidate in northern England postponed that election to May 27, local officials said.
Under the British electoral system, the candidate who receives the most votes in a constituency wins. The system, known as "first past the post," is praised for its simplicity and the strong ties it forms between voters and representatives, but critics dislike its failure to provide proportional representation.
Source : CNN