The parties to a contract must be capable of entering into a contract in the eyes of the law. Generally, this requires that both parties be of legal age, mentally competent to understand the contract, and not under the influence of drugs or alcohol.