Several inmates were credited with saving the life of an armed guard at a Texas jail, and it was all caught on camera.

Surveillance video showed the eight inmates in a basement holding cell at the Parker County Jail when the lone guard stopped breathing.

The group broke out of their cell, assisted the man, and started yelling for help.

Sheriff’s deputies rushed to the basement, corralled the inmates back into the cell, and called for paramedics who revived the guard.

Officials said the jailer is continuing to recover from the apparent heart attack.

Join our Newsletter for the latest news right to your inbox