Legal doctrine that protects the party to a contract who makes an honest endeavor in good faith to perform his/her part of the contract with the results of his/ her endeavor being beneficial and retained by another party to the contract, from having the party who received such benefit avoiding performance. The equitable doctrine of substantial performance protects a party from forfeiture under the contract for technical inadvertence or trivial variations or omissions in performance.