The warden and four guards have been arrested by police in Mexico's Chihuahua state in connection with the massacre last month of 17 inmates at the jail in Ciudad Juarez, prosecutors said.
Lucio Cuevas Sanchez was arrested on negligence, corruption and other charges stemming from the July 25 killings at the jail, the Chihuahua state Attorney General's Office said.
The four unidentified guards face similar charges, as well as several counts of covering up illegal activities, the AG's office said.
One of the guards is also being charged with corruption of minors after being caught leading a 15-year-old girl away from the jail, where she attended an orgy, the AG's office said.
Arrest warrants were issued for inmates Alejandro Alvarado Ruiz and Sergio Bustamante on murder charges, prosecutors said.
Alvarado Ruiz and Bustamante, however, are wanted in connection with two different cases, the AG's office said.
One of the men is wanted for last month's massacre, while the other is being sought for the July 24 orgy involving minors, who were given drugs and alcohol at the jail, prosecutors said.
Nine more arrest warrants will be issued in connection with the massacre, the AG's office said.
The shootout at the municipal jail in Ciudad Juarez, Mexico's murder capital, left 17 inmates dead and 20 others wounded.
A woman was among those killed in the incident, officials said.
Gunfire broke out between members of the rival Los Aztecas and Los Mexicles gangs at the prison, officials said.
Los Mexicles works as the armed wing of the Sinaloa drug cartel in the border city, while Los Aztecas provides enforcers for La Linea, a gang allied with the Juarez cartel.
The cartels have been battling for control of Juarez, located across the Rio Grande from El Paso, Texas, unleashing a wave of violence that has left thousands of people dead since 2006.
The inmates had firearms and knives, AG's office spokesman Carlos Gonzalez Estrada said, adding that it is not known how many weapons were seized.