Two men who were convicted for their roles in the violent beating of a black man during a white supremacist rally in Charlottesville, Va., last year have been sentenced to prison.

Jacob Scott Goodwin, 23, was sentenced to eight years in prison for his role in the assault of DeAndre Harris, while Alex Michael Ramos, 34, was sentenced to six years.

ADVERTISEMENT

The two men were identified along with others in footage of the incident that went viral after the rally, showing Harris being savagely beaten with poles while on the ground, NPR News reported Friday.

Goodwin said in court that he had attacked Harris after seeing him hit another man who was also the leader of a white nationalist group based in North Carolina. The same man had pressed charges against Harris, but the charged were dropped months before Goodwin was convicted earlier this year.

According to a local NBC affiliate, Goodwin and Ramos apologized for the violent beating during their sentencing hearings.

Two other men were charged with malicious wounding for their role in the attack on Harris. Daniel Borden pleaded guilty in May and awaits sentencing, while Tyler Davis is expected to face trial later this year.

Goodwin's and Ramos’s prison sentences come weeks after the anniversary of last summer's violent Unite the Right rally in Charlottesville, Va., where white supremacists clashed with counterprotesters and a woman, Heather Heyer, was killed.