The doctrine of privity of contract means that only parties to the contract can enforce its terms or be sued under it. Third parties cannot enforce contractual rights even if the contract benefits them. This protects the freedom to contract and limits liability to those who agreed to be bound.