What caused the financial crisis?

Forget about particular details for a moment, in conceptual terms what led so many financial institutions to take so much excess risk?