In a nutshell, primaries are elections that are held by a political party to determine who the candidate for that party is in the regular election. So there's a Democratic primary, a Republican primary, and so forth. One usually has to be a registered member of the party to vote for that specific primary.