An indemnity clause is a contractual provision in which one party agrees to compensate the other for any harm, liability, or loss arising out of the contract. It is designed to allocate risk between parties, offering protection against potential legal claims and financial losses.