In an historic rebuke of the private prison industry, the Department of Justice today announced plans to eliminate the use of private prisons to incarcerate federal inmates. The announcement follows the release of a critical inspector general’s report and an investigative series published in The Nation, in partnership with the Investigative Fund and Reveal News. We uncovered more than two-dozen questionable deaths and widespread medical negligence in the federal facilities that will now begin a process of closure.

“I am directing that as each contract reaches the end of its term, the Bureau should either decline to renew or substantially reduce its scope,” Deputy Attorney General Sally Yates wrote in a memo today to the Bureau of Prisons’acting director. By May of 2017, when many of the existing federal contracts are already set to end, the new directive means that the total number of inmates in contract prisons will drop to 14,200, down from 22,000 now and a high of nearly 30,000 in 2013. Within five years, every current federal prison contract will have reached the end of its term.

The Department of Justice Inspector General report, released last week, found private prisons are dramatically less safe, less secure, and more costly than the BOP’s own prisons. The private facilities, Yates wrote, “simply do not provide the same level of correctional services, programs, and resources” and “do not save substantially on costs,”

The report bolstered the findings of a June investigation in The Nation, which reviewed 20,000 pages of previously undisclosed agency monitoring reports and discovered that the BOP’s system of oversight has failed to effectively correct serious, repeat deficiencies, including medical mismanagement and negligence so severe that some clinics didn’t have a single doctor on staff.

In the immediate wake of the deputy attorney general’s announcement, the stock prices of the two largest prison contractors—Corrections Corporation of America and Geo Group—plummeted, with CCA’s stock losing more than half its value by midday.

While state-level private prisons have received notable media scrutiny, the federal government’s facilities have operated largely out of sight. Inmates and their advocates have long complained about poor medical care, complaints that have erupted into riots in more than one facility in recent years. Our investigation was the first to substantiate inmates’ complaints.

Our first story, published in January, uncovered dozens of deaths that involved substandard medical care in the prisons. Based on thousands of pages of medical records obtained through an open records lawsuit, the investigation found that private contractors consistently failed to provide baseline levels of care to patients sick with cancer, mental illness, AIDS, and other infectious diseases. The prison medical units were gravely understaffed and relied on licensed practical nurses, or LPNs, to do provide frontline care that far outstripped their training. In some facilities, clinics operated without medical doctors. Prisoners who complained of illness went months at a time without seeing a medical doctor, their health declining until their premature deaths.

Part two of the investigation revealed the Bureau of Prisons has known about these medical failures for years. We reviewed the agency’s monitoring reports and additional federal records, all obtained through the an open records lawsuit, and interviewed former BOP monitors and officials in the BOP’s contracting office. We found that the Bureau’s monitors had recorded a litany of grave concerns, including 34 deaths following substandard medical care.

Yet even as a platoon of federal monitors flagged the repeated failures, year after year, contracting officials in Washington renewed contracts with derelict prison operators. Federal monitors tasked with watchdogging the facilities said they were not permitted by top BOP officials to use the full enforcement muscle to correct deficiencies, and plans to close failing facilities were derailed by the Bureau’s top brass.

“It is not breaking news that these facilities…are more costly, less effective and more dangerous than those run by the government,” Arizona Congressman Raul Grijalva said today in a statement. “The lack of transparency in the private prison industry has required intrepid reporting, and thankfully journalists at outlets like The Nation have risen to the task.”

Rep. John Conyers, who is ranking member of the Judiciary Committee and read our investigation into the Congressional Record, added, “Private, for profit prisons create perverse and counterproductive incentives that only worsen our crisis of overincarceration.…. I have long had the very concerns the Deputy Attorney General cited for this decision, which is consistent with our efforts in Congress to reform our criminal justice system.”

The Bureau of Prisons began to use private contractors to run facilities in the mid-1990s, as reentry after deportation became a criminal offense and the need for federal prison beds exploded. The agency now uses all but one of its private prisons to hold noncitizen immigrants convicted of federal crimes. The agency has said in statements that because noncitizens will later be deported, the government is not obligated to provide the same level of reentry services offered to citizens.

About 40 percent of the noncitizens held in these facilities were convicted of only border-crossing crimes, mostly reentry after deportation. Many of the remainder are held on drug charges.

Prison reform advocates applauded today’s DOJ announcement.

“Today is an historic day and we hope that this marks a turning point in which federal, state, and local agencies follow the DOJ’s lead and end their relationships with prison profiteers,” said Bob Libal, director Grassroots Leadership, which opposes private prisons. “This is a huge victory for immigrants, criminal justice reformers, and validates the results of investigative reporting done by The Nation.”

Carl Takei, a staff attorney with the ACLU’s National Prison Project applauded the decision, and accredited the OIG’s decision to “tremendous public pressure that’s been brought to bear on the Justice Department and Bureau of Prisons about the terrible conditions in their private prisons.”

As the BOP closes the private facilities, the men held inside will be moved to federal government-run facilities. Though the process of closing prisons has already begun—three weeks ago, the BOP told CCA it would close the Cibola facility in New Mexico—the process is likely to last several years. In her announcement today, Yates said that an earlier proposal to re-up contacts for more than 10,000 beds next year will be amended to include just 3,600 beds.

The announcement today does not directly impact other federal agencies that rely on private prisons. Immigration and Customs Enforcement, which manages detention for immigrants facing deportation, and the United States Marshals Service, responsible for pre-trial detention for the federal criminal system, will still be allowed to contract with private companies to hold thousands of detainees.

This post was reported in partnership with The Nation, with support from the Puffin Foundation.