We document that banks which cut lending the most during the Great Recession were lending to the riskiest firms. Motivated by this evidence, we build a competitive matching model of bank-firm relationship, in which firms with riskier projects borrow from the banks with lower holding costs (e.g....