In a nutshell, greedy lenders lent money to people who could not pay it back to buy properties that inflated in value because it was easy to borrow the money to buy them.
Just like the Tulip boom, it went tits up when someone decided not to buy any more and the prices crashed.