A New York judge has resigned from the bench after he was charged over a social media post that allegedly "conveyed racial and/or political bias," state officials said.

Kyle R. Canning, who was a part-time judge in Altona, N.Y., was charged over a Facebook post that allegedly showed a photo of a noose, along with the statement "IF WE WANT TO MAKE AMERICA GREAT AGAIN WE WILL HAVE TO MAKE EVIL PEOPLE FEAR PUNISHMENT AGAIN,” the New York State Commission on Judicial Conduct said in a statement Tuesday. The language used in the post echoed President Trump Donald John TrumpFederal prosecutor speaks out, says Barr 'has brought shame' on Justice Dept. Former Pence aide: White House staffers discussed Trump refusing to leave office Progressive group buys domain name of Trump's No. 1 Supreme Court pick MORE's "Make America Great Again" campaign slogan.

ADVERTISEMENT

The commission said that Canning was charged with sharing an image that "conveyed racial and/or political bias."

“The noose is an incendiary image with repugnant racial connotations,” Commission Administrator Robert H. Tembeckjian said in the statement. “It is the very antithesis of law and justice. For a judge to use the image of the noose in making a political point undermines the integrity of the judiciary and public confidence in the courts.”

Canning took office in 2018, and his term was supposed to last until the end of 2021, officials said. He agreed to never "seek or accept judicial office" in the future, they added.

The commission said Canning was served with a formal complaint in May and resigned from his position on June 27.

“They have presented me with several different options in resolving what they claim to be a serious offense," he said in a resignation letter, according to The Washing Post. "I feel as though, due to my current financial situation and obligations to my family, I am being coerced into resigning.”