Comparative negligence is a legal doctrine used in tort law to allocate damages when multiple parties are at fault, allowing each party to be held liable for their respective degree of fault. This system contrasts with contributory negligence, where any fault on the part of the plaintiff could bar recovery entirely.