A professor at Carnegie Mellon University drew criticism on social media after wishing England’s Queen Elizabeth "excruciating pain" hours before she died on Thursday.

"I heard the chief monarch of a thieving raping genocidal empire is finally dying," Carnegie Mellon University Professor Uju Anya tweeted on Thursday morning. "May her pain be excruciating."

The Twitter post came as reports began to circulate that the 96-year-old monarch's health was deteriorating and doctors were "concerned" about her condition.

The tweet, which was re-tweeted and liked over 10,000 times on Twitter in just a few hours, prompted strong pushback from many users on Twitter. 

PRAYERS FOR QUEEN ELIZABETH II FROM FAITH LEADERS ACROSS THE US

Queen Elizabeth in England wearing yellow outfit

LONDON, ENGLAND - MAY 23: Queen Elizabeth II visits The Chelsea Flower Show 2022 at the Royal Hospital Chelsea on May 23, 2022, in London, England.  (Photo by James Whatling - WPA Pool/Getty Images))

"That sentiment is pure evil," researcher Mike Galsworthy tweeted. "Please delete as it benefits the world nothing."

"Hi @CarnegieMellon, this your professor?" Young America’s Foundation Spokesperson Kara Zupkus tweeted.

TOURISTS GATHER AT BUCKINGHAM PALACE, SHED TEARS AMID CONCERNS FOR THE QUEEN

"Who are you again?" blogger and former conservative Member of British Parliament Louise Mensch tweeted. "Oh yeah absolutely nobody trying to grift off a beloved woman people care about."

Queen Elizabeth is seen at Balmoral in Scotland

Britain's Queen Elizabeth II waits in the Drawing Room before receiving Liz Truss for an audience at Balmoral, in Scotland, Tuesday, Sept. 6, 2022. (Jane Barlow/Pool Photo via AP, File)

"This is what a complete lack of emotional intelligence & a heart full of hate looks like," British model Jemma Palmer tweeted. "Don’t be like @UjuAnya. Be a better human."

"This is someone supposedly working to make the world better?" Amazon founder Jeff Bezos tweeted. "I don’t think so. Wow."

Anya, listed as an associate professor of second language acquisition on the Carnegie Mellon website, did not immediately respond to a request for comment from Fox News Digital.

"If anyone expects me to express anything but disdain for the monarch who supervised a government that sponsored the genocide that massacred and displaced half my family and the consequences of which those alive today are still trying to overcome, you can keep wishing upon a star," Anya later tweeted.

Carnegie Mellon professor tweet wishes Queen Elizabeth II "excruciating" death

Carnegie Mellon professor Uju Anya's tweet.

Hours after the tweet was posted, Buckingham Palace announced that Queen Elizabeth has died

CLICK TO GET THE FOX NEWS APP

Crowd gathers outside Buckingham Palace as news broke that Queen Elizabeth II has died

Crowds gather outside Buckingham Palace as the news that Queen Elizabeth II has died today, September 8, 2022. The flag atop the Palace has been lowered to half-staff. (Fox News Digital)

"The Queen died peacefully at Balmoral this afternoon," the royal family shared on its website. "The King and The Queen Consort will remain at Balmoral this evening and will return to London tomorrow."

Carnegie Mellon University did not immediately respond to a request for comment from Fox News Digital but posted a message on social media regarding the controversy.

"We do not condone the offensive and objectionable messages posted by Uju Anya today on her personal social media account," the university posted on Twitter. "Free expression is core to the mission of higher education, however, the views she shared absolutely do not represent the values of the institution, nor the standards of discourse we seek to foster."