Although the rise in subprime lending and the ensuing wave of foreclosures was partly a result of market forces that have been well-identified in the literature, in the United States it was also a highly racialized process. We argue that residential segregation created a unique niche of poor minority clients who were differentially marketed risky subprime loans that were in great demand for use in mortgage-backed securities that could be sold on secondary markets. We test this argument by regressing foreclosure actions in the top 100 U.S. metropolitan areas on measures of black, Hispanic, and Asian segregation while controlling for a variety of housing market conditions, including average creditworthiness, the extent of coverage under the Community Reinvestment Act, the degree of zoning regulation, and the overall rate of subprime lending. We find that black residential dissimilarity and spatial isolation are powerful predictors of foreclosures across U.S. metropolitan areas. In order to isolate subprime lending as the causal mechanism whereby segregation influences foreclosures, we estimate a two-stage least squares model that confirms the causal effect of black segregation on the number and rate of foreclosures across metropolitan areas. In the United States segregation was an important contributing cause of the foreclosure crisis, along with overbuilding, risky lending practices, lax regulation, and the bursting of the housing price bubble.