Banks were hurt, too, but aside from the collapse of Lehman Brothers, the pain proved transitory. Bankers themselves were never punished for their sins. In one form or another — the Troubled Asset Relief Program, quantitative easing, the Fed’s discount window — the financial sector was supported in spectacular fashion.

Like the bankers, shareholders and investors were also bailed out. By cutting interest rates to near zero and pumping trillions — yes, you read that right — into the economy, the Federal Reserve essentially put a trampoline under the stock market. The subsequent bounce produced a windfall, but only for a limited group of beneficiaries. Only about half of American households have any exposure to the stock market, including 401(k)’s and retirement plans, and ownership of the shares of individual companies is clustered among upper-income families.

For homeowners, there wasn’t much of a rescue package from Washington, and eight million succumbed to foreclosure. Sometimes, eviction came in the form of marshals with court orders; in other cases, families quietly handed over the keys to the bank and just walked away. Although home prices in hot markets have fully recovered, many homeowners are still underwater in the worst-hit states like Florida, Arizona and Nevada. Meanwhile, more Americans are renting and have little prospect of ever owning a home.

Worsening the picture, the post-crisis era has been marked by an increased disparity in wealth between white, Hispanic and African-American members of the middle class. That’s according to an analysis of Fed data by the Pew Research Center, which found that families in the latter two groups were more dependent on housing as their principal form of investment. Not only were both minority groups harder hit by foreclosures, but Hispanics were also twice as likely as other Americans to be living in Sun Belt states where the housing crash was most severe.

In 2016, net worth among white middle-income families was 19 percent below 2007 levels, adjusted for inflation. But among blacks, it was down 40 percent, and Hispanics saw a drop of 46 percent. For many, old-fashioned hard work has simply not been a viable path out of this hole. After unemployment peaked in the fall of 2009, it took years for joblessness to return to pre-recession levels. Slack in the labor market left the employed and unemployed alike with little leverage to demand raises, even as corporate profits surged.

Maybe it was inevitable that when half the population watches its wages stagnate while the other half gets rich in the market, the result is President Donald Trump and Brexit.