A primary election is an election that narrows the field of candidates before an election for office. Primary elections are one means by which a political party or a political alliance nominates candidates for an upcoming general election or by-election.