R. Kelly's attorneys want to question a convicted member of the Latin Kings gang who says he beat up the jailed R&B singer in a Chicago cell.

Kelly’s lawyers filed a motion Friday in federal court to question Jeremiah Farmer under oath, the Chicago Tribune reported.

Farmer said in a court filing earlier this week in Hammond, Ind., that he attacked Kelly on Aug. 26 in the Metropolitan Correctional Center (MCC) because he wanted to shed light on wrongdoing by the government in his own criminal case.

R. KELLY ATTACK BY PEN-WIELDING INMATE LEADS ATTORNEY TO ASK FOR EARLY RELEASE

In this Sept. 17, 2019, file photo, R. Kelly appears during a hearing at the Leighton Criminal Courthouse in Chicago. 

In this Sept. 17, 2019, file photo, R. Kelly appears during a hearing at the Leighton Criminal Courthouse in Chicago.  (Antonio Perez/Chicago Tribune via AP, Pool, File)

Farmer was able to slip away from an employee at the center, enter a cell and repeatedly hit Kelly in the head, according to a U.S. Bureau of Prisons report attached to Farmer’s filing.

A security officer used pepper spray to stop the attack, the report said.

Kelly, 53, faces several dozen counts of state and federal sexual misconduct charges in Illinois, Minnesota and New York, from sexual assault to heading a racketeering scheme aimed at supplying him with girls. The Grammy Award-winning singer has denied ever abusing anyone.

Farmer, 39, is facing mandatory life in prison in a racketeering conspiracy that involved a 1999 double murder, according to the newspaper.

CLICK HERE TO GET THE FOX NEWS APP

“It appears that MCC personnel simply followed Mr. Farmer, allowed him to carry out the attack, and then only intervened after Mr. Kelly had already sustained serious injuries,” Kelly’s attorney Michael Leonard wrote in the motion.

Kelly’s attorneys have been trying to have him released on bond pending his trial.

The Associated Press contributed to this report.