Democrats and Republicans vote on who they want to run for president and other offices. And then once those votes are tallied, delegates are awarded.
Delegates are people chosen to represent their community at their political party’s presidential nominating convention. They are the ones who actually select the candidate to represent their party on the November ballot.
Candidates need to win a majority of them to pick up their party’s nomination.