Credit Default Swaps (CDS) are financial derivatives that function as a type of insurance against the default of a borrower. They allow investors to mitigate the risk of credit events such as bankruptcy or failure to meet debt obligations. In essence, a CDS contract involves a buyer who makes periodic payments to a seller in exchange for compensation if the borrower defaults or experiences another credit event.