The Community Reinvestment Act (CRA) encourages banks to lend to low and moderate income individuals. Following the subprime crisis, the CRA was accused of having promoted risky lending. This paper estimates the effect of the CRA on mortgage lending, exploiting variation in the set of banks...