When the US housing market started to turn south, the biggest underwriters (such as Countrywide) did not go bankrupt right away, because they had sold the vast majority of their loans to the CDO market. Eventually, however, the uncertainty created by these CDOs nearly brought down the entire US banking system.