WASHINGTON (AP) — Donald Trump was elected the 47th president of the United States on Wednesday, an extraordinary comeback for a former president who refused to accept defeat four years ago, sparked a violent insurrection at the U.S. Capitol, was convicted of felony charges and survived two assassination attempts.

With a win in Wisconsin, Trump cleared the 270 electoral votes needed to clinch the presidency.

The victory validates his bare-knuckle approach to politics. He attacked his Democratic rival, Kamala Harris, in deeply personal – often misogynistic and racist – terms as he pushed an apocalyptic picture of a country overrun by violent migrants. The coarse rhetoric, paired with an image of hypermasculinity, resonated with angry voters – particularly men – in a deeply polarized nation.

Republican Presidential nominee former President Donald Trump holds hands with former first lady Melania Trump after speaking to supporters at the Palm Beach County Convention Center during an election night watch party, Wednesday, Nov. 6, 2024, in West Palm Beach, Fla. (AP Photo/Lynne Sladky

As president, he’s vowed to pursue an agenda centered on dramatically reshaping the federal government and pursuing retribution against his perceived enemies. Speaking to his supporters Wednesday morning, Trump claimed he had won “an unprecedented and powerful mandate.”

The results cap a historically tumultuous and competitive election season that included two assassination attempts targeting Trump and a shift to a new Democratic nominee just a month before the party’s convention. Trump will inherit a range of challenges when he assumes office on Jan. 20, including heightened political polarization and global crises that are testing America’s influence abroad.