Quantum valebant refers to a legal principle that allows for the recovery of the value of a benefit conferred, often in cases where no formal contract exists. This concept is tied to the idea of unjust enrichment, ensuring that a party is compensated for the value of services or goods provided, even in the absence of an explicit agreement. It emphasizes fairness by preventing one party from unfairly benefiting at the expense of another.