An indemnity bond is a contract between two people that protects them from foreseeable losses or damages.