Prime Minister Theresa May said on Friday she would form a new government to provide certainty and lead Britain in talks with the European Union to secure a successful Brexit deal.
On the doorstep of her official Downing Street residence, May said she could rely in parliament on the support of her "friends" in Northern Ireland's Democratic Unionist Party after her governing Conservatives failed to win a majority.
"We will continue to work with our friends and allies in the Democratic Unionist Party in particular," she said.
"Our two parties have enjoyed a strong relationship over many years and this gives me the confidence to believe that we will be able to work together in the interests of the whole United Kingdom."
Earlier, May was fighting to hold on to her job as British voters dealt her a punishing blow, denying her the stronger mandate she had sought to conduct Brexit talks and instead weakening her party's grip on power.
With no clear winner emerging from Thursday's parliamentary election, a wounded May signalled she would fight on, despite being on course to lose her majority in the House of Commons.
Her Labour rival Jeremy Corbyn said she should step down.
With 633 out of 650 seats declared, the Conservatives had won 308 seats and were therefore no longer able to reach the 326-mark they would need to command a parliamentary majority. Labour had won 258 seats.
After winning his own seat in north London, Corbyn said May's attempt to win a bigger mandate had backfired. "The mandate she's got is lost Conservative seats, lost votes, lost support and lost confidence," he said.
"At this time, more than anything else this country needs a period of stability," a grim-faced May said after winning her own parliamentary seat of Maidenhead in southeast England.
With talks of unprecedented complexity on Britain's departure from the European Union due to start in just 10 days' time, there was uncertainty over who would form the next government and over the fundamental direction Brexit would take.
May had spent the campaign denouncing Corbyn as the weak leader of a spendthrift party that would crash Britain's economy and flounder in Brexit talks, while she would provide "strong and stable leadership" to clinch a good deal for Britain.
(With agency inputs)