A bilateral mistake of fact occurs when both parties to a contract are mistaken about a material fact. A bilateral mistake of law occurs when both parties are mistaken about the legal implications of the contract terms. In both cases, the mistake must be mutual and fundamental to the contract in order to potentially invalidate it.