The US Department of Justice and Alabama agreed Monday to settle a 2020 lawsuit alleging that the state’s prisons are unconstitutionally filthy, unsafe and violent. The proposed deal was announced hours before a bench trial was set to begin, with several inmates expected to testify about prison conditions.

The settlement would require Alabama to take steps to improve its prisons, but would not appoint an outside monitor to verify the state’s compliance. US District Judge Harold D. Mooty III, who scheduled a hearing for Tuesday, commended the parties for reaching an agreement and said he would review the proposal before the hearing, according to AL.com.

The proposed consent decree calls for assigning correctional staff to each housing unit, making hourly unannounced checks and keeping records of assaults between inmates. It would also require the state to record staff use of force, repair inoperable security cameras and carry out needed facility maintenance, among other measures. The agreement requires court approval.

The lawsuit accused Alabama of housing male prisoners in unsafe and unsanitary facilities and failing to protect inmates from physical violence, sexual assault and excessive force by correctional staff. State and federal officials described the agreement as a reasonable conclusion to the case.

“The Department of Justice is committed to protecting the constitutional rights of all Americans, regardless of where they may be. This agreement is further proof of that commitment,” US Attorney General Todd Blanche said in a statement.

Advocacy groups and some inmates’ family members criticized the proposal, saying it would not do enough to compel improvements. Alison Mollman, legal director of the ACLU of Alabama, called it a “disappointing and troubling agreement.”

“The agreement doesn’t appoint an independent monitor to make sure the state follows through and gives ADOC years to make good on its empty promises. Meanwhile, the people living and working inside Alabama’s prisons are still left to contend with the deadly conditions that gave rise to the lawsuit,” Mollman said.

Family members of inmates said they were angered and disappointed by the last-minute deal. “I am mad as hell, and I am tired of watching Alabama treat its prison crisis like a public relations problem instead of the human rights emergency it is,” said Tim Mathis, whose son Chase died in a state prison in 2024.

Julie Sledd, a friend of an incarcerated man who appeared in a documentary about the prison system, said the proposed agreement silences inmates and others who planned to testify at trial.

“Our friends and loved ones risked everything to stand up and speak out about the deadly conditions in their prisons. So many family members were ready to tell the world exactly what they and their loved ones have suffered,” Sledd said.

The Justice Department issued a report in 2019 accusing Alabama of housing male inmates in dangerously understaffed prisons, which it called the most violent in the country. The department filed suit the following year. The case has continued under the administrations of Presidents Joe Biden and Donald Trump.

Phil Williams, the US attorney for the northern district of Alabama, called the case a “landmark piece of litigation.” “It’s the only case in America where the DOJ has sued an entire prison system, instead of just a single prison,” Williams said Monday.

Alabama Gov. Kay Ivey called the proposed deal a “win for Alabama.”

“Alabama was prepared to take this case to trial. However, the Department of Justice made meaningful concessions that reflect the progress we have made and preserve Alabama’s discretion to manage its correctional system. This agreement provides a reasonable path forward while allowing us to continue doing what is necessary to protect public safety,” Ivey said.

Alabama’s prison system was the subject of an Oscar-nominated documentary that relied heavily on footage shot by inmates using contraband cellphones.

As a partial response to its prison problems, Alabama approved construction of two 4,000-bed mega prisons. The first prison’s projected cost rose from $623 million to more than $1 billion. It was supposed to open this fall but has been delayed by construction problems.