Barely two weeks after the polls closed in an election he is now projected to lose, U.S. President Donald Trump took to Twitter to fire the official responsible for spearheading efforts to secure the vote.

Trump late Tuesday berated the director of the Cyber Security and Infrastructure Security Agency, Christopher Krebs, for making what he called a “highly inaccurate” statement about the election, alleging the November 3 presidential election was marred by “massive improprieties and fraud.”

Trump Fires Security Chief Who Said 2020 Vote Was 'Most Secure' in US History

“Effective immediately, Chris Krebs has been terminated as Director of the Cybersecurity and Infrastructure Security Agency,” Trump added.

Trump Fires Security Chief Who Said 2020 Vote Was 'Most Secure' in US History

Krebs responded to his firing on social media, using a newly verified personal Twitter account.

Trump Fires Security Chief Who Said 2020 Vote Was 'Most Secure' in US History

“Honored to serve,” he said. “We did it right. Defend Today, Secure Tomrorow. (sic) #Protect2020”

Honored to serve. We did it right. Defend Today, Secure Tomrorow.

Tensions over alleged voter fraud had been brewing for months — Trump repeatedly sounding alarms about potential fraud in the run-up to this month’s election, focusing his concern on the expanded use of mail-in ballots due to the coronavirus pandemic.

He renewed those allegations on November 5, two days after the election, announcing on Twitter that his campaign would be challenging results in many of the states projected to go for his Democratic opponent, former Vice President Joe Biden, due to “Voter Fraud and State Election Fraud.”

However, despite a continuous stream of allegations from his campaign and his supporters, evidence of massive voter fraud or other irregularities on a scale necessary to swing the election in Trump’s favor has not materialized.

Late last Thursday, a coalition of federal and state officials, including CISA, further rejected the allegations as baseless.

“The November 3rd election was the most secure in American history,” the (GCC) Executive Committee and the Election Infrastructure Sector Coordinating Council said. “There is no evidence that any voting system deleted or lost votes, changed votes or was in any way compromised.”

Krebs himself had also taken an active role in debunking rumors and unfounded allegations in the days and weeks following the election, taking to Twitter to dismiss some conspiracy theories as “nonsense” while also directing voters to Rumor Control website for accurate information.

NEW reminder from , pushing back against the latest rumors re

"(1)Hammer/Scorecard is still nonsense, &(2) DHS IS NOT carrying out a fraud sting op using watermarked ballots"

On Monday, a group of 59 scientists and election security experts penned a letter to the public, further refuting allegations that the election was rigged.

"No credible evidence has been put forth that supports a conclusion that the 2020 election outcome in any state has been altered through technical compromise," they wrote. “In every case of which we are aware, these claims either have been unsubstantiated or are technically incoherent.”

NEW: 59 election security experts call claims was rigged "unsubstantiated or are technically incoherent"

"No credible evidence has been put forth that supports a conclusion that the 2020 election outcome in any state has been altered through technical compromise"

On Tuesday, Krebs shared a tweet of the letter from his official Twitter account. It would be the last one he would post, apparently prompting Trump’s ultimate ire.

ICYMI: On allegations that election systems were manipulated, 59 election security experts all agree, "in every case of which we are aware, these claims either have been unsubstantiated or are technically incoherent."

Krebs’ firing, though, was not unexpected.

The Reuters news agency last Thursday, citing three sources familiar with the matter, reported Krebs had told associates that he expected the White House to fire him, in part for refusing to remove or change information on the Rumor Control website.

The report prompted an initial outcry, with groups like the National Association of Secretaries of State, coming to Krebs’ defense.

“Director Krebs and the many other CISA staffers we interact with have been invaluable partners in further securing election infrastructure and sharing vital information,” NASS spokesperson Maria Benson told VOA at the time.

That outcry continued to grow late Tuesday as word of Krebs’ dismissal spread, with prominent Democrats and some Republicans making their thoughts known.

“President Trump is retaliating against Director Krebs and other officials who did their duty. It’s pathetic, but sadly predictable,” House Intelligence Committee Chairman, Democrat Adam Schiff, said in a statement.