Credit default swap is basically just an agreement that I have with you, where I sell you insurance on some bond you own. If the bond goes belly up, I promise to pay you. And as long as the bond doesn't go belly up, you pay me for selling you insurance.