Four inmates who overpowered guards and escaped from a county jail in Ohio early Sunday were apprehended in North Carolina on Monday, the authorities said.

Three inmates were caught in Cary, N.C., after an hourslong search by multiple agencies, according to a statement from the town. Those inmates were said to have been in the area of a Red Roof Inn, the statement said.

The remaining escaped inmate, Lawrence R. Lee III, was captured in Durham, N.C., the Gallia County Sheriff’s Office said on Facebook. It was not immediately clear where in Durham he was captured.

“I would like to thank the hard-working law enforcement professionals who have tirelessly dedicated themselves to providing an end to the search for these escapees,” the county sheriff, Matt Champlin, said.