Jordan Hill, 20 (pictured), was sentenced to eight years in prison on Thursday for a January 2017 attack on a white teen

The alleged ringleader in the beating of a mentally disabled teenager that was livestreamed on Facebook has pleaded guilty to a hate crime and sentenced to eight years in prison.

Jordan Hill, 20, of Carpentersville, Illinois became the third of the four defendants to admit taking part in the attack when he entered the plea in a Cook County courtroom Thursday.

He also pleaded guilty to aggravated kidnapping.

The January 2017 incident received national attention because it involved a white victim and four African-Americans who taunted the bound-and-gagged teen with profanities against white people.

Prosecutors say Hill - a friend of the 18-year-old victim - took the teen to a Chicago apartment where he and three friends proceeded to tie him up and gag him, before cutting his clothes, hair and scalp with a knife.

The group recorded the attack on Facebook Live, and they can be heard yelling 'F**k Trump!' and 'F**k white people!' in the background.

Scroll down for video

Hill lured the victim (above) to a friend's Chicago apartment where they proceeded to tie him up and torment him

The group yelled 'F*** Trump' among other things at the victim

Prosecutors say Hill called the victim's mother and asked for $300 in ransom for his return.

Judge Williams Hooks, pictured, gave Hill a lecture on racial history

The victim eventually escaped and a police officer spotted him wandering down a street, bloodied and disoriented.

Before he was sentenced on Thursday, Judge Williams Hooks, who is also black, gave Hill a lecture on racial history.

'I surmise you believe you have some pride in being an African-American, is that fair to say?' Hooks asked Hill.

'I’m proud to be black,' Hill responded quietly.

Hooks then pointed out several portraits of civil rights heroes that hang in the courthouse, including Ida B. Wells and Frederick Douglass - none of which Hill could name. Wells was a black investigative journalist and Douglass was a social reformer who escaped from slavery.

'Every time you take an act like this particular terrible act against this young man who couldn’t defend himself, you spit on the graves of all these folks that surround you in this courtroom,' the judge said.

Tesfaye Cooper, 20 (left), is the only suspect left awaiting trial. Sister Brittany, center, and Tanishia Covington, right, have already pleaded guilty and been sentenced

An attorney for the remaining defendant, 20-year-old Tesfaye Cooper, expressed interest in a plea deal on Thursday.

The two other suspects in the attack - sisters Brittany and Tanishia Covington - have already pleaded guilty to their crimes and been sentenced.

The attack took place at 25-year-old Tanishia's West Side apartment.

She was sentenced to three years in prison after pleading guilty in April, but is already free on parole due to time served.

Hooks pointed out several portraits of civil rights heroes that hang in the courthouse, including Ida B. Wells (seen left) and Frederick Douglass (seen right) - none of which Hill could name. Wells was a black investigative journalist and Douglass was a social reformer who escaped from slavery

Her younger sister, 20, was sentenced to four years of probation, which included a ban on using social media.

But software on her phone show she violated that order by logging into Facebook on three different days in March.

She was taken into custody in April, but the judge has yet to decide the issue of whether to send her back to jail to finish the rest of her sentence.

The teen claims it was her boyfriend's mother who used her phone to log into Facebook.