Privity of contract is a common law principle which dictates that only parties directly involved in a contract have the right to enforce its terms or claim damages under it. This doctrine ensures that obligations and rights are confined to the contracting parties, preventing third parties from interfering or benefiting without consent.