1980 Democratic Party presidential primaries
Carter faced a major primary challenger in Senator Ted Kennedy of Massachusetts, who won 12 contests and received more than seven million votes nationwide. Therefore, Kennedy didn't withdraw from the primary until the second day of the convention. This is the most recent primary where the sitting president still had an opponent at the convention.