Surveillance cameras captured the moment deputy Carlos Escamilla performed the Heimlich maneuver on the inmate on Saturday.
There were 120 inmates in the dining room when one of them started choking.
That's when Escamilla jumped in and performed the Heimlich maneuver on him, and after six or seven thrusts the inmate coughed up a piece of food.
The deputy said the inmate he helped thanked him, and the other inmates gave him a standing ovation.
Escamilla said he's not a hero, he was just doing his job.