What is a general election?
Prime Minister Theresa May has just announced plans to hold a general election in the UK on 8 June 2017.
A general election gives adults in the UK the chance to have a say on who runs the country.
But how does it all work? Newsround's here to explain...
How does a general election work?
The UK is divided into 650 areas, called constituencies.
Each area has a person called a Member of Parliament (or MP), who represents it in the House of Commons in London.
When you turn 18, you can vote in a general election to choose who you want to be your MP.
So a general election is really 650 individual elections that all happen on one day, across England, Wales, Scotland and Northern Ireland.
On election day, people go to polling stations to vote.
They get a ballot paper, which lists all the candidates - that's the people who want to be that area's MP.
Each person has one vote. They mark the ballot paper with a cross next to the name of the candidate they most want to represent them.
The candidate who gets more votes than anyone else becomes the MP for that area. This is called first past the post.
That candidate wins a seat in the House of Commons.
How is a general election won?
Most MPs belong to groups called political parties.
To win, a political party needs to reach the magic number of 326 MPs, which is half of all of them plus one.
If a political party manages to do this, it is called winning an overall majority, as it has won more seats than all of the other parties added together.
If this happens, the Queen will invite the leader of this party to form the new government.
The party leader will become the prime minister.
What happens if a party doesn't win 326 MPs?
When there is no clear winner - in other words, no political party wins more seats that all the other parties put together - this is what is called a hung parliament.
If this happens, there are two options.
The first one - the bigger parties can try to join up with another party so that together they have 326 or more seats. They can then rule the country together. This is called a coalition government.
The government in power before the election gets the first chance at doing this.
This happened in 2010. The Conservatives won the most MPs out of everybody, but they did not have an overall majority. They won 306 seats.
So they had to form a partnership with a smaller party so that, when added together, they had enough seats. The Conservatives joined up with the Liberal Democrats (who won 57 seats) to create a government together.
The second one - if the party that won the most MPs, but without getting an overall majority, does not want to join with another party like this, they can try to rule as a minority government.
They can work to reach agreements with smaller political parties to support them in parliament, or try to get support from other MPs for what they want to do as they go along. But if they don't get that support, they risk getting defeated in the House of Commons.
If neither of these options work for any party, then there will be another election.
How often do general elections happen?
By law, a general election must happen at least once every five years, but the government can call to have one sooner than that.
If one is held earlier than expected - like the government wants to do this time - this is called a snap election.
So what happens now?
Before this election could happen, the government needed to get the support of MPs in the House of Commons.
On Wednesday, MPs voted in favour of having a general election on 8 June.
Theresa May, who is the leader of the Conservative party, needed two-thirds of MPs - that's 434 MPs - to support her for the general election to go ahead. 522 MPs voted in favour of it happening.
Jeremy Corbyn, who is the leader of the Labour party (the Conservative party's main opposition), has said: "I welcome the prime minister's decision to give the British people the chance to vote for a government that will put the interests of the majority first."
What will the general election be like?
Politicians across the UK will now have their work cut out to win (or keep) their seat in the House of Commons.
For several weeks, they will be knocking on doors, debating with rivals and delivering speeches to try to convince adults across the UK to vote for them.
They will publish manifestoes - lists of what they plan to do if they are voted into power - so people can decide if they want to vote for them.
It is a hugely important decision for voters as the politicians they choose will work in the Houses of Parliament and regularly debate on big issues that affect how the country is run.