A mistake of fact occurs when one or both parties in a contract have a false belief about a basic fact that is essential to the agreement. This misunderstanding can significantly affect the validity of the contract, as it pertains to the nature of the agreement and the terms involved. Understanding the difference between mutual and unilateral mistakes is crucial because it influences whether a contract can be enforced or voided.