We study the effects of shadow banking panics in a macroeconomic model with a rich financial system, including deposit-financed retail banks and wholesale-financed shadow banks. The model can quantitatively match the dynamics of key variables around the US financial crisis. Wholesale funding...