2008 United States presidential election
The main contest during the Democratic primaries was between Barack Obama and Hillary Clinton, which was a very close race.  Clinton won the popular vote, but ultimately Obama won more unpledged delegates and therefore the nomination.