A judge in Michigan who helped restrain an uncooperative defendant took off his robe to join a courtroom scuffle before telling a court officer: “Tase his ass right now!”

Jackson County Circuit Judge John McBain gave the order to a court officer as he removed his robe and walked toward defendant Jacob Larson, who clearly agitated the judge by repeatedly interrupting him during a hearing about a personal protection order violation in December.

Larson, according to video posted Thursday on MLive.com, told McBain he sent a former high school classmate 22 Facebook messages after the judge signed a protection order in August 2015. Larson also went to the woman’s car, put cards on the vehicle and sometimes just sat beside it, McBain said. Larson claimed those disturbing actions were before the protection order, setting off the explosive exchange.

“Yeah, I know, but it’s like ‘Fatal Attraction’ kind of stuff that I warned you about last time,” McBain said. “I told you to just leave her alone. She was a classmate of yours, she apparently has no interest in seeing you.”

Larson then interrupted: “Well, I want her to tell me to leave her alone.”

“You know what? I told you to leave her alone and apparently that didn’t get through loud and clear, so today, you’re going to jail for three days,” McBain said. “All right? And the next time you violate, you’re going to jail for …”

Larson interrupted McBain again, accusing him of being “buddy-buddy” with the woman, enraging the judge.

“You know, you got a bad attitude, you got a bad attitude last time you were in court,” McBain said. “You were even referencing discussions about my own daughter. OK?”

Larson interrupted McBain again, before the judge sentenced him to 45 days in jail. He then called the sentence “bullsh—t,” prompting McBain to lengthen the sentence to 93 days.

“You want to go for a year? Try it right now,” McBain said. “One more word out of you and it’ll be a year of county.”

McBain then slammed his gavel, ordering Larson to serve 93 days in county jail. He then stood up while ordering the court officer to handcuff Larson, who spat out: “Buddy-buddy motherf—–!”

That interruption seemingly pushed McBain over the edge, as he then said Larson would be spending a year in county for violating the personal protection order and his conduct in the courtroom.

“You can’t do that sh–,” Larson said.

“Appeal it,” McBain replied.

Larson then spoke to his accuser in the courtroom, asking the woman to tell him directly to leave her alone as a court officer repeatedly ordered him to put his hands behind his back to be handcuffed. That was when McBain removed his robe and joined the courtroom scuffle.

“Tase his ass right now,” McBain said while approaching Larson and the court officer, who removed his Taser but did not have to use it, according to MLive.com.

McBain told the website he was solely concerned about the safety of both men.

“There is one thing I don’t tolerate is disruptions in my courtroom,” McBain told MLive.com, adding that Larson was “totally disturbing” the proceedings.

McBain said it was the first time he could recall having to leave the bench to help restrain a defendant. He has since recused himself from the case as he could potentially be a witness in the stalking case. Larson, who ended up receiving 93 days in jail for the outburst, has a court date scheduled for Dec. 2, MLive.com reports.