This paper develops a theory of the credit cycle to account for recent evidence that capital is increasingly allocated to inefficiently risky projects over the course of the boom. The model features lenders who sell risk exposure to non-lender investors in order to relax borrowing constraints,...