At its core the meltdown was the result of two things.  Fraud and people buying home they couldn't afford.  As it is described in The Big Short bankers bundled the loans and hid their lack of quality in tranches of loans.  Yes they were responsible for creating the conditions that led to ridiculous mortgages (ie NINJA), but some of the problem was undeniably people taking out loans that they could never repay.