After months of campaigning, the Democratic National Committee has a new chair – former Labor Secretary Tom Perez.
Coming into Saturday's election, the front-runners were Minnesota Rep. Keith Ellison and Perez. There were six others who were also in the race.
It took two rounds of voting in Atlanta before the DNC had its winner
According to NPR, Perez responded to the win by almost immediately naming Ellison deputy chair of the Democratic Party. Perez called for a motion to so and it was passed by a voice vote.
Ellison's supporters included Sen. Bernie Sanders, New York City Mayor Bill de Blasio, Sen. Elizabeth Warren, and Senate Minority Leader Chuck Schumer.
How this election worked
Then Saturday, more than 400 DNC members had the chance to cast their ballots. A candidate wins by getting the majority of the votes (at least 224 if all 447 members cast ballots).
The fact that there were eight people in the race made it harder to get the majority – because votes can be split in many different ways.
According to The Hill, Perez was one vote shy of winning the first round.
Since no one got the majority, members voted a second time.
That time, Perez got the majority – 235 votes for Perez, 200 votes for Ellison.
If no one got the majority, the DNC would have started eliminating the candidate with the least votes until someone won.
So technically this could have gone on a while.
What happens now
Ellison, who represents Minnesota’s 5th Congressional House District, said he'd resign from Congress if he won this race.
While he didn't win, Ellison was still named deputy chair – so we'll have to wait and see what that means in terms of him staying in Congress.
If Ellison were to leave, there'd need to be a special election to fill his place.
However, if Ellison stays, he might have some catching up to do. Lately, a lot of Minnesota’s U.S. representatives have been holding town halls. Ellison hasn't recently because he was too busy in this race.