Gordon Brown resigns as UK prime minister
Speaking alongside his wife Sarah outside No 10 Downing Street, he said the job had been "a privilege" and wished his successor well.
He has stepped down as Labour leader and will be replaced by deputy Harriet Harman until a successor is elected.
His decision comes as the Tories and Liberal Democrats are poised to agree a deal to form a government.
Mr Brown said he had taken the decision to resign after concluding he would not be able to form a government after days of talks between the parties.
In an emotional farewell speech outside No 10, Mr Brown said he had "loved the job" and it had been "a privilege to serve".
"I loved the job for its potential to make this country I love fairer, more tolerant, more green, more democratic, more prosperous and more just - truly a greater Britain.
"In the face of many... challenges up to and including the global financial meltdown, I have always tried to serve, to do my best in the interests of Britain, its values and its people."
David Cameron is now at Buckingham Palace to accept the Queen’s invitation to form a government.
Anticipating that, Mr Brown said: "I wish the next prime minister well as he makes the important choices for the future."
His two young sons joined him and wife Sarah for his brief statement which ended with the words: "Thank you and goodbye."
After leaving the Palace, Mr Brown returned to Labour headquarters to thank party staff. He told them that the election defeat was "his fault and his fault alone".
Failed talks
His resignation follows Thursday’s general election in which no party won an overall majority but the Conservatives won the most seats and votes.
Both Labour and the Tories have since been trying to persuade the Lib Dems to join them in a coalition government to run the country.
Mr Brown had previously said he would resign as Labour leader, but stay on as prime minister until September, if Labour could agree a deal with the Lib Dems.
Gordon Brown, his wife Sarah and their children leaving Downing Street
Mr Brown paid tribute to his wife’s "unwavering support"
But after this possibility ended, the BBC’s Political Editor Nick Robinson said Mr Brown decided he could not form a government and should stand down.
Before making his announcement, Mr Brown consulted with his wife Sarah and close colleagues including Lord Mandelson, Douglas Alexander, Ed Balls and Ed Miliband and also spoke to former prime minister Tony Blair by phone.
Deputy Labour leader Harriet Harman is to become Labour leader until a replacement is elected.
Labour’s ruling National Executive Committee has indicated it wants Mr Brown’s successor as leader to be chosen as soon as possible, possibly by the end of July.
Mr Brown succeeded Tony Blair as prime minister in June 2007 after spending ten years as chancellor of the exchequer.
Europe
Rutte said he wants to convince Trump of NATO's usefulness at the Ankara summit
US, Gulf countries reject possibility of tariffs in Strait of Hormuz
Zelenskyy approves 40-day influence operation to pressure Russia into ending war
French navy has intercepted another Russian 'shadow fleet' tanker, Macron says
NEWS FEED
Ecuador advances to knockout rounds at World Cup, beating Germany 2-1
Iran warns vessels against unauthorized Hormuz routes after ship attack
Rutte said he wants to convince Trump of NATO's usefulness at the Ankara summit
IDF helicopter carrying Israeli president makes emergency landing after bird strike
First Vice-President Mehriban Aliyeva shared post on Armed Forces Day
Azerbaijan marks 108th anniversary of the establishment of its Armed Forces
Death toll from Venezuela earthquake rises to 188 - UPDATED - 2 - VIDEO
President Ilham Aliyev’s social media accounts featured video dedicated to the Azerbaijani Army
US, Gulf countries reject possibility of tariffs in Strait of Hormuz
President Ilham Aliyev’s social media accounts shared post on Armed Forces Day
18 wagons of gasoline and 8 wagons of diesel fuel will be sent from Azerbaijan to Armenia
Zelenskyy approves 40-day influence operation to pressure Russia into ending war
Telephone conversation held between Azerbaijani, Turkmen Presidents
Vice-President of the Heydar Aliyev Foundation Leyla Aliyeva meets with Head of the Vatican Apostolic Library and Apostolic Archive
Ziya Öztürkler praises Azerbaijan's continued support for the TRNC
Apple says removal of VK apps from App Store is due to sanctions compliance
Ruben Rubinyan elected as candidate for Speaker of the National Assembly of Armenia
Missile alert declared in Moscow region-UPDATED
Hikmat Hajiyev discusses Azerbaijan–NATO partnership with Secretary General's Special Representative
Armenian Prosecutor General's Office petitions CEC to authorize criminal prosecution of Gagik Tsarukyan
Venezuela's foreign minister thanks Azerbaijan for solidarity following earthquake
Azerbaijan and Kazakhstan agree on full transition to electronic permit system
Rubio believes no final agreements reached in Anchorage
US, Iran agree in principle to establish direct military communication channel, Vance says
Rubio believes no final agreements reached in Anchorage
Azerbaijan Army servicemen participate in Anatolian Eagle-2026 International Exercise-VIDEO
Leadership of the Ministry of Defense visits Central Clinical Hospital - PHOTO
Eight Azerbaijani cities to host military marches marking Armed Forces Day
Azerbaijan MFA: Existing opportunities should be used to finalize peace process with Armenia
Rubio says Israel, Lebanon close to commitment of intent
Lukashenko: Peoples of Belarus, Russia, and Ukraine will be together sooner or later
Romanian ambassador leaves Russian Foreign Ministry without comment
Rubio: Iran's support for regional proxies should be addressed in memorandum talks
Azerbaijan and Ukraine discuss current cooperation agenda
Azerbaijan-Israel innovation dialogue held at Shimon Peres Center - PHOTO
Iran, Oman stress need for coordination on Strait of Hormuz traffic in foreign minister call
Ghalibaf criticizes US over claims regarding Iran's unfrozen assets
Iraqi Oil Ministry denies reports of potential OPEC exit, urges output quota reassessment-UPDATED
President Ilham Aliyev signs order awarding Defense Ministry servicemen
Azerbaijan's President awards fallen servicemen posthumously
Military Institute named after Heydar Aliyev holds another graduation ceremony - PHOTO - VIDEO
Azerbaijan establishes "Intellectual Customs" information system
President Ilham Aliyev awards major general rank to five Defense Ministry servicemen
Ashura blood donation campaign concludes in Azerbaijan, 1,269.45 liters of blood collected -PHOTO-UPDATED-1
Rubio: No Gulf country supports charging fees for passage through the Strait of Hormuz
Hikmat Hajiyev, Macron's adviser review state of Azerbaijan-France relations
Azerbaijani cadet awarded Italy's "Sword of Honor"
Azerbaijan establishes budget-funded organizations based on several public legal entities - DECREE
Defense minister: Azerbaijani Armed Forces are among the strongest militaries in the region
US sends search and rescue teams to Venezuela after deadly earthquake