WASHINGTON >> 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. He won Michigan on Wednesday afternoon, sweeping the “blue wall” along with Pennsylvania — the one-time Democrat-leaning, swing states that all went for Trump in 2016 before flipping to President Joe Biden in 2020.

His Democratic rival, Vice President Kamala Harris, called Trump on Wednesday afternoon to concede the race and congratulate him. A short time later, Biden also called Trump to congratulate him and to invite the president-elect to the White House, formally kicking off the transition ahead of Inauguration Day, the White House said. Biden also called Harris.

Foreign leaders called Trump too, including Israeli Prime Minister Benjamin Netanyahu and French President Emmanuel Macron.

“I want to thank the American people for the extraordinary honor of being elected your 47th president and your 45th president,” Trump told throngs of cheering supporters in Florida even before his victory was confirmed.

In state after state, Trump outperformed what he did in the 2020 election while Harris failed to do as well as Joe Biden did in winning the presidency four years ago. Upon taking office again, Trump will work with a Senate that will now be in Republican hands, while control of the House hadn’t been determined.

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.

There will be far fewer checks on Trump when he returns to the White House. He has plans to swiftly enact a sweeping agenda that would transform nearly every aspect of American government. His GOP critics in Congress have largely been defeated or retired. Federal courts are now filled with judges he appointed. The U.S. Supreme Court, which includes three Trump-appointed justices, issued a ruling this year affording presidents broad immunity from prosecution.

While Harris focused much of her initial message around themes of joy, Trump channeled a powerful sense of anger and resentment among voters.

He seized on frustrations over high prices and fears about crime and migrants who illegally entered the country on Biden’s watch. He also highlighted wars in the Middle East and Russia’s invasion of Ukraine to cast Democrats as presiding over – and encouraging – a world in chaos.

It was a formula Trump perfected in 2016, when he cast himself as the only person who could fix the country’s problems, often borrowing language from dictators.

“In 2016, I declared I am your voice. Today I add: I am your warrior. I am your justice. And for those who have been wronged and betrayed, I am your retribution,” he said in March 2023.

This campaign often veered into the absurd, with Trump amplifying bizarre and disproven rumors that migrants were stealing and eating pet cats and dogs in an Ohio town. At one point, he kicked off a rally with a detailed story about the legendary golfer Arnold Palmer in which he praised his genitalia.

Special counsel Jack Smith was evaluating Wednesday how to wind down the two federal criminal cases against Trump.

Florida Gov. Ron DeSantis, who challenged Trump for the Republican nomination, lamented that the indictments “sucked out all the oxygen” from the GOP primary. Trump easily captured his party’s nomination without participating in a debate against DeSantis or other GOP candidates.

With Trump dominating the Republican contest, a New York jury found him guilty in May of 34 felony charges in a scheme to illegally influence the 2016 election through a hush money payment to a porn actor who said the two had sex. He faces sentencing this month, though his victory poses serious questions about whether he will ever face punishment.

He also has been found liable in two other New York civil cases: one for inflating his assets and another for sexually abusing advice columnist E. Jean Carroll in 1996.

Trump is subject to additional criminal charges in an election-interference case in Georgia that has become bogged down. On the federal level, he’s been indicted for his role in trying to overturn the results of the 2020 election and improperly handling classified material. When he becomes president, Trump could appoint an attorney general who would erase the federal charges.

As he prepares to return to the White House, Trump has vowed to swiftly enact a radical agenda that would transform nearly every aspect of American government. That includes plans to launch the largest deportation effort in the nation’s history, to use the Justice Department to punish his enemies, to dramatically expand the use of tariffs and to again pursue a zero-sum approach to foreign policy that threatens to upend longstanding foreign alliances, including the NATO pact.