If U.S. President Donald Trump loses his bid for re-election, as looked increasingly likely Wednesday, it would be the first defeat of an incumbent president in 28 years. But one thing seemed certain: Win or lose, he will not go quietly away.

Trailing former Vice President Joe Biden, Trump spent the day trying to discredit the election based on invented fraud claims, hoping either to hang onto power or explain away a loss. He could find a narrow path to re-election among states still counting, but he has made clear that he would not shrink from the scene should he lose.

At the very least, he has 76 days left in office to use his power as he sees fit and to seek revenge on some of his perceived adversaries. Angry at a defeat, he may fire or sideline a variety of senior officials who failed to carry out his wishes as he saw it, including Christopher Wray, the FBI director, and Dr. Anthony Fauci, the government’s top infectious diseases specialist, in the middle of a pandemic.