A primary election is held (separately) for both the Republicans and Democrats. This election determines which candidate will represent their party in the final election.