Philanthropist Josh Kraft has ended his campaign for mayor of Boston after being soundly defeated in a preliminary election against incumbent Michelle Wu.

Boston Mayor Michelle Wu and challenger Josh Kraft will both advance to the November general election in the race to be the city’s mayor.

Josh Kraft spent millions of his own money on the race.