We build a macroeconomic model that centers on liquidity transformation in the financial sector. Intermediaries maximize liquidity creation by issuing securities that are money-like in normal times but become illiquid in a crash when collateral is scarce. We call this process shadow banking. A...