In exchange for an upfront fee, a bond insurer would take a bond with a midling investment grade rating -- single-A, for example -- and offer to pay investors what they were due if the issuer defaulted.
Despite the high jinks and copious drinking (or perhaps because of it), their large brains came up with a way of reducing risks for bond buyers: a bilateral contract that, for a fee, enabled investors to pass on the risk of default to another party.