An ex-Mason High School student was sentenced to more than three years in prison Monday for maliciously wounding a black man during the 2017 white supremacist “Unite the Right” rally in Charlottesville, Virginia.

Charlottesville Circuit Judge Richard Moore sentenced Daniel Borden, 20, to three years and 10 months in prison for beating DeAndre Harris with a 6-foot wooden plank in a parking structure near the University of Virginia during the rally.

The assault was captured on video and sparked national outcry.

Ex-Mason student in 'Commie Killer' viral attack to be sentenced

"This is one of the worst beatings I've ever seen as a lawyer or judge," Moore said.

The video depicts Harris on the ground surrounded by several men kicking and striking him with hands, sticks, planks and poles at the mouth of a parking garage. Harris sustained multiple bruises, a fractured wrist and a skull fracture that required seven staples.

Borden, an Ohio native, was identified in the video by his white construction helmet with the moniker "Commie Killer" across it. Borden is seen swinging the wooden plank over his head and down at Harris three times. On the third swing Borden made contact with Harris and the plank snapped.

Moore agreed with the prosecution's assessment that Borden appeared "gleeful" in one of the several videos documented that day.

Harris was not present at the hearing and did not issue a victim impact statement. Assistant Commonwealth Attorney Nina-Alice Antony said Harris is trying to put the incident behind him.

Borden's father, Rick Borden, gave a character witness statement, detailing how Daniel was "traumatized" from the violence he saw that day and scared from being unable to find his friends. Borden said his son picked up the plank in self-defense.

"I absolutely don't think my son did anything wrong," Borden said.

Borden pleaded guilty in May with an Alford plea — meaning the defendant confesses that there is enough evidence to be convicted but does not acknowledge guilt for the crime.

Borden gave a statement in court, describing the incident as "a bad call and a horrible mistake," as well as asking forgiveness from Harris and his family.

The guilty plea, along with Borden's age and his decision to waive his preliminary hearing, factored in to the sentencing decision.

"One thing is clear," Moore said. "Borden felt he was justified. He was not."

Facing a maximum 20 years in prison, Borden received three years and 10 months in prison and five years of probation. Borden is one of four people charged for the "vicious" crime. Jacob Goodwin, 24, received eight years in prison and Alex Ramos received six years prison time.

"As with all prosecutions surrounding the Aug. 12, 2017 attack of Deandre Harris, this office is hopeful that today’s outcome brings some measure of solace and closure to him and the community at large," said Joseph Platania, attorney for the commonwealth.