BOSTON (AP) — The mayor of Salem, Mass., said President Donald Trump needs to "learn some history" after he claimed those accused in the city's infamous 17th century witch trials received more due process than he has as he faces impeachment.

Democratic Mayor Kim Driscoll wrote on Twitter Tuesday that the trials in 1692 included "powerless, innocent victims" who were “hanged or pressed to death” on scant evidence.

Twenty people suspected of witchcraft were killed in Salem, a coastal city about 20 miles north of downtown Boston, during a frenzy stoked by superstition, fear of disease and strangers, and jealousy. Nineteen were hanged, and one man was crushed by rocks.

See all of our impeachment coverage here.

The allegations against Trump, in contrast, are against a powerful world leader and come with “ample evidence" and "admissions of wrongdoing," Driscoll said.

“Right, will they ever learn some history?" Driscoll wrote in a follow-up tweet. "This situation is much different than the plight of the witch trial victims, who were convicted using spectral evidence + then brutally hanged or pressed to death. A dubious legal process that bears no relation to televised impeachment."

Driscoll saids comparing the impeachment proceedings to her city's dark legacy is "offensive" to the victims and their descendants. "People in Salem want this history remembered so that it acknowledges going forward what never, ever should happen again,” she said in an interviewwith WCVB-TV.

White House spokespersons didn't respond to an email seeking comment Wednesday.

In a six-page letter addressed to House Speaker Nancy Pelosi on Tuesday, Trump slammed Democrats for seeking to impeach him.

“More due process was afforded to those accused in the Salem Witch Trials," he complained. “One hundred years from now, when people look back at this affair, I want them to understand it, and learn from it, so that it can never happen to another President again.”

The Republican faces impeachment for abuse of power and obstruction of Congress over allegations he threatened to withhold military aid to the Ukraine unless that country opened an investigation into former U.S. Vice President Joe Biden, who is vying for the Democratic nomination for president in 2020.

Trump maintains it was appropriate for him to ask Ukraine to look into allegations of corruption and denies witholding the aid.

He's also frequently dismissed investigations into his administration as “witch hunts.” Trump used the phrase during Special Counsel Robert Mueller's investigation into allegations of Russian interference in the 2016 presidential election and the role then-candidate Trump and his campaign may have played.