The Oregon Supreme Court has reportedly suspended a judge who refused to marry same-sex couples over a series of ethics charges, including allegations he violated gun laws.

Marion County Circuit Judge Vance Day was given a three-year suspension without pay, the lengthiest suspension the court has handed down in its history, The Associated Press reported Friday.

An ethics panel recommended in 2016 that Day be removed, according to the AP, but the court decided instead to order the suspension.

ADVERTISEMENT

Day drew attention in the past for telling his staff not to schedule any same-sex marriages following a ruling by a federal judge in 2014 that legalized the practice in the state.

The court said the judge's behavior toward same-sex couples was not a factor in its decision to give such a lengthy suspension, according to the AP.

“[Day] acted dishonestly and for his own self-benefit,” the court wrote in a unanimously ­endorsed opinion.

The opinion also said Day had lied and noted his actions "suggested a character that reflected poorly on his fitness to serve as a judge."

The court addressed multiple ethics charges against Day in its ruling, including one that said Day twice had given a felon who was on probation a gun through a special court order for veterans where Day served as a judge.

The court also brought up a charge that Day had made false statements during an investigation after an incident between Day and a referee at a soccer game in 2012.

The court's ruling does not have an influence on criminal charges against Day regarding his alleged violation of gun laws.