the campaign of a candidate to be elected
"With her record as mayor, the school board is closely watching her candidacy for governor next year."
The state of being a candidate.
"Her sudden withdrawal from the election left everyone surprised by the abrupt end to her candidacy."