Among the many shameful legacies of racial discrimination and segregation in the United States is the fact that African-Americans make up a disproportionate share of both those who are victims of violent crimes and those who are incarcerated for committing them.

Locking Up Our Own, a remarkable new book by Yale Law School professor and former District of Columbia public defender James Forman Jr., tells the poignant but neglected story of how newly enfranchised black communities coped with this dilemma as a crime wave swept through urban America in the 1980s and 1990s, driving the murder victimization rate among blacks to an astonishing high of 39.4 per 100,000 population in 1991.

African-American mayors, police and prosecutors responded to the pleas of beleaguered constituents with rhetoric, and policy, that were no less โ€œtough on crimeโ€ than that of their white counterparts. Black leaders often framed crime-fighting as an issue of salvaging the civil rights revolution.

โ€œWhat would Dr. King say?โ€ about the violence plaguing predominantly black cities, they would ask rhetorically โ€” and then crack down on mostly youthful offenders, which inevitably involved โ€œlocking up our own.โ€

This was an era, Forman reminds us, during which activist-attorney Johnnie Cochran regularly attended rallies against drug dealing in Los Angeles, calling for PCP dealers to be punished โ€œharshly,โ€ and Eric Holder, then the Districtโ€™s top prosecutor, supported aggressive, often pretextual police stops and searches of cars in predominantly black sections of the city, in a desperate effort to get guns off the street.

Formanโ€™s beautifully written narrative, enriched by firsthand knowledge of the cops and courts, neither condemns black leaders in hindsight nor exonerates the white-dominated institutions that laid the basis for what dramatic block letters on the cover of an August 1979 โ€œspecial issueโ€ of Ebony labeled โ€œblack on black crime.โ€

However, he adds historical nuance to the story of โ€œmass incarcerationโ€ told in Ohio State University law professor Michelle Alexanderโ€™s influential 2010 book The New Jim Crow.

This makes Formanโ€™s book the second important corrective this year to Alexanderโ€™s. The first, Locked In by Fordham University law professor John Pfaff, deployed statistical evidence to show that the United Statesโ€™ highest-in-the-industrialized world incarceration rate did not result from the war on drugs, contrary to a theme of Alexanderโ€™s book that has been repeated so often Pfaff dubs it โ€œthe Standard Story.โ€

Even if everyone in state and federal prison on a drug conviction were released tomorrow, the U.S. incarceration rate would still be about quadruple what it was in 1970. That is because, Pfaff demonstrates, most people in prison are there for violent crimes such as homicide or aggravated assault.

Punishment for these offenses drove incarceration rates higher, Pfaff shows, but not, as is often supposed, because of laws imposing harsh mandatory minimum sentences.

The key factor was discretionary prosecutorial decisions; at least from the early 1990s on, prosecutors in the nationโ€™s 3,000-plus counties charged arrestees with felonies at a higher rate even as the crime rate itself declined. Ultimately, more punitive exercise of prosecutorial discretion fed a steady net influx of convicts to state prisons.

District attorneys were motivated by tough-on-crime politics and enabled by cost-shifting economics: Often counties pay for police and prosecution, but imprisonment comes out of the state budget.

The most recent evidence indicates that the age of mass incarceration is abating; it has been, oddly enough, since just prior to the publication of The New Jim Crow.

The Pew Charitable Trusts has reported, based on Justice Department data, that the U.S. incarceration rate declined from a peak of 1 in 100 adults in 2007 to 1 in 115 in 2015. Keith Humphreys, of Stanford University, has shown that racial disparities, though still large, may be diminishing. The incarceration rate for blacks fell steadily between 2000 and 2014, while that of whites rose slightly.

The challenge now is to accelerate the de-incarceration trend while sustaining low levels of crime. A troubling uptick in urban homicide last year may have helped elect President Donald โ€œAmerican Carnageโ€ Trump. Certainly his harshest, most racially tinged anti-crime rhetoric both stimulated fear and exploited it. His attorney general, Jeff Sessions, has emphasized punishing crime rather than consent decrees against allegedly abusive local police.

Under the circumstances, Forman and Pfaffโ€™s emphasis on local politics, and county- and state-level prosecutorial discretion, is paradoxically hopeful.

Federal policy makes headlines, but in the vast majority of cases, criminal justice takes place at the grass roots. And in recent years, that is the level at which the most promising reform efforts have occurred. Those efforts can and should continue, whatever might happen next in Washington.

Charles Lane is a Washington Post columnist.