Primary elections are held within political parties to select their candidates for general elections. These elections determine which candidate will represent the party in the main electoral contest.