A third-party agreement involving a principal who undertakes to perform its contractual obligations, an obligor(s) and a surety who will compensate the other party(ies) in the event that the principal fails to perform. Surety bonds can sometimes be used as security in lieu of letters of credit or cash.