Liability refers to the legal responsibility one party has for their actions or omissions that cause harm to another party, while indemnity is a contractual agreement where one party agrees to compensate the other for any losses or damages incurred. Together, they form a critical component of risk management strategies in contracts, ensuring that potential financial burdens are allocated and mitigated between parties involved.