Here are the messages of the main party leaders after a huge night for politics.
- Conservatives - Boris Johnson
Boris Johnson has hailed his stunning election victory, stating that "we smashed the roadblock, we ended the gridlock".
Addressing supporters and party workers in central London on Friday morning, the prime minister celebrated the "biggest Conservative majority since the 1980s".
In a victory speech,Mr Johnson said: "We did it - we pulled it off, didn't we?
- Labour - Jeremy Corbyn
He blamed his losses on the media and Brexit and confirmed he will not lead Labour in the next general election and will begin a period of 'reflection' with the party.
- Lib Dem - Jo Swinson
After Jo Swinson failed to hold her East Dunbartonshire seat, former deputy leader Sir Ed Davey and Baroness Sal Brinton will become the Liberal Democrats’ joint acting leaders.
In her speech she said these results will bring "dread and dismay"
Under the party’s constitution, the leader must be an MP – so Ms Swinson ceased to be leader when she lost her seat. A leadership election will take place in the new year, the party said.