An Oklahoma detention officer said he turned in his badge and quit after being told he couldn’t kneel with George Floyd demonstrators gathering outside a jail where he was working.

Keval Williams told FOX25 Oklahoma City that he was protesting Sunday when he was called in to work after a demonstration outside the Oklahoma County Jail turned violent.

PHOENIX POLICE KNEEL WITH PEACEFUL PROTESTERS CHANTING 'TAKE A KNEE' AS CROWD DISBANDS FOR CURFEW

However, when Williams' supervisors wouldn’t give him permission to join protesters after asking to kneel with them, he said he quit his job.

“It felt so wrong holding my shield there and making sure they didn’t come past the line,” he said. “But I was just standing with these people … so that’s when I knew I had to stop and take a stand with them.”

Williams and other detention officers were called in after protesters set an Oklahoma County sheriff’s van on fire and tried to breach the jail, Mark Myers, with the sheriff’s office, told KOCO-TV.

NEW JERSEY POLICE OFFICERS HELP LEAD PEACEFUL MARCH FOR GEORGE FLOYD

The sheriff’s office said Williams could not take a knee at the time because he wasn’t permitted to leave his post watching over the inmates.

To those employees wishing to protest, Myers said they could “take the day off.”

Williams later told KOCO that he “didn’t want to quit his job” because it wasn’t the message he wanted to send.

CLICK HERE TO GET THE FOX NEWS APP

“I wanted to show all these protesters that police officers, correction officers stand with you and they understand what you’re doing,” he said.