Theresa May will remain as the UK's Prime Minister - but will need the support of ten Unionists from Northern Ireland to win votes in parliament.
The Conservative leader failed in her bid to increase her majority in the House of Commons, and actually lost seats to fall short of a majority.
However she will have a bare-bones majority thanks to the support of the ten members of the Democratic Unionist Party - and because Sinn Féin won seats that it will not take up.
With 650 seats up for grab in the House of Commons, parties would need 326 seats to command an outright majority.
But the Speaker does not vote and Sinn Féin won 7 seats - up from 4 last time - which it does not take up, due to the oath of allegiance required to be sworn to the Crown.
That means an effective majority is 322, with Theresa May's Conservatives winning 318 seats. The addition of the ten DUP votes gives her a narrow margin of security.
Labour leader Jeremy Corbyn comfortably retained his own seat - and called on May to stand down.
He said it was clear that only one party had truly won the election, and that he was prepared to serve as Prime Minister.
However Theresa May, as the leader of the largest party, visited Queen Elizabeth and was given the first opportunity to form a new government.
Arriving back at Downing Street, she paid special mention of her new supporters: