Mexico City parties sign thousands of civil contracts every year, from the purchase of an apartment in Condesa to the lease of a commercial space in Polanco. The Civil Code for Mexico City (Código Civil para la Ciudad de México, CCCDMX) devotes its Fourth Book to obligations and contracts. It sets the rules that decide when an agreement of wills produces full legal effects and when a court can declare it null or rescind it. Disputes arising from civil contracts make up a significant share of the caseload of the capital’s civil courts. Individuals and companies that operate in Mexico City need to understand the types of contracts, their essential elements and the legal tools that protect their rights. In this guide, Lic. Mariana Ortega gives a clear, practical explanation of everything you need to know about civil contracts in Mexico City.
What Is a Civil Contract and What Is Its Legal Basis in Mexico City?
A civil contract is an agreement of wills between two or more persons that creates, transfers, modifies or extinguishes rights and obligations of a civil nature. Article 1793 of the Civil Code for Mexico City defines a contract as an agreement that produces or transfers obligations and rights. It distinguishes the contract from an agreement in the strict sense, which modifies or extinguishes them under Article 1792 of the same code.
The law that governs civil contracts signed in Mexico City appears mainly in the Civil Code for Mexico City, in particular Articles 1794 to 1859 (general provisions on contracts) and the specific chapters that regulate each type of contract. The Notary Law for Mexico City (Ley del Notariado para la Ciudad de México) applies when a notary must formalize the contract. The Code of Civil Procedure for Mexico City (Código de Procedimientos Civiles para la Ciudad de México) covers procedural questions, and various special laws apply depending on the subject matter.
You must distinguish civil contracts from commercial contracts. Local Mexico City legislation governs civil contracts. The Commercial Code (Código de Comercio), a federal law, governs commercial contracts, which arise when at least one party acts for commercial speculation. This distinction has important practical consequences, because jurisdiction, prescription periods and formalities differ significantly between the two regimes. If you are unsure whether your contract is civil or commercial, we recommend an initial consultation with a specialist in civil law.
Essential Elements of Civil Contracts
Article 1794 of the Civil Code for Mexico City requires two essential elements for a contract to exist: consent and an object that can be the subject of the contract. If either element is missing, the agreement is legally nonexistent, which means it never produced legal effects.
Consent is the agreement of wills to create or transfer rights and obligations. Parties can give it expressly (orally or in writing) or tacitly (through acts that presuppose it). Consent is valid only if it is free of defects: error, fraud, violence or lesion. Article 1812 of the CCCDMX provides that consent is not valid if a party gave it by mistake, if someone extracted it by violence or if someone obtained it through fraud.
The object of the contract can be the thing the obligor must give or the act the obligor must do or refrain from doing. Under Articles 1824 to 1831 of the CCCDMX, a valid object has three characteristics: it exists in nature, it is determined or determinable as to its kind, and it is within the sphere of commerce.
Besides the elements of existence, Article 1795 of the CCCDMX sets out the requirements for validity:
| Validity requirement | Legal basis | Consequence if missing |
|---|---|---|
| Legal capacity of the parties | Arts. 1798-1799 CCCDMX | Relative nullity |
| No defects in consent | Arts. 1812-1823 CCCDMX | Relative nullity |
| Lawful object, motive or purpose | Arts. 1830-1831 CCCDMX | Absolute nullity |
| Form prescribed by law | Arts. 1832-1834 CCCDMX | Relative nullity |
The difference between absolute and relative nullity is crucial. Absolute nullity cannot be confirmed and does not lapse. A party can cure relative nullity by confirmation or by the lapse of the right to invoke it.
Most Common Types of Civil Contracts in Mexico City
The Civil Code for Mexico City regulates several types of contracts. The following are the most relevant for everyday legal practice in the capital.
Purchase and sale contract (contrato de compraventa). Articles 2248 to 2322 of the CCCDMX regulate it. One party agrees to transfer ownership of a thing or a right, and the other agrees to pay a certain price in money. In Mexico City, a real estate sale must be formalized in a public deed before a notary public (notario público) when the appraised value of the property exceeds 365 times the Mexico City Unit of Account (Unidad de Cuenta de la Ciudad de México), under Article 2320 of the CCCDMX. For more information, read our article on real estate sales in Mexico City.
Lease agreement (contrato de arrendamiento). Articles 2398 to 2496 of the CCCDMX regulate leases. The lessor agrees to grant the temporary use or enjoyment of a thing to the lessee, and the lessee agrees to pay a certain price for that use or enjoyment. For residential leases in Mexico City, special provisions limit the amount of rent, annual increases and the grounds for early termination.
Loan for use (contrato de comodato). Articles 2497 to 2515 regulate it. It is the free loan of a non-fungible thing. Unlike a lease, it involves no rent, but the borrower must keep the thing in good condition and return it when the term ends.
Gift contract (contrato de donación). Articles 2332 to 2383 of the CCCDMX provide for it. One person transfers part or all of their assets to another free of charge. A gift of real estate must take the same form the law requires for its sale (Article 2345 of the CCCDMX).
Professional services contract (contrato de prestación de servicios profesionales). Articles 2606 to 2615 regulate it. A professional agrees to provide technical services in exchange for payment called fees (honorarios).
Purchase and Sale Contracts in Mexico City: Requirements and Formalities
The purchase and sale contract is the most frequent legal act in Mexico City civil practice. To be fully valid, it must meet specific requirements that vary depending on the asset involved.
Sale of movable property. When the object of the contract is movable property (a vehicle, furniture, equipment), the parties can formalize the sale in a private written document. The law requires no public deed and no notary. Even so, we strongly recommend a written contract that includes the full identification of the parties with their addresses, a detailed description of the asset, the agreed price and method of payment, the delivery date, the applicable warranties, and the signatures of the parties and witnesses.
Sale of real estate. Real estate sales in Mexico City face stricter formal requirements under Article 2320 of the Civil Code. When the appraised value of the property exceeds 365 times the current Mexico City Unit of Account, the parties must execute the contract in a public deed before a notary public who practices in Mexico City. The transaction also creates tax obligations: the Real Estate Acquisition Tax (Impuesto sobre Adquisición de Inmuebles, ISAI) has a progressive rate schedule in Mexico City that applies to the highest value among the transaction value, the cadastral value and the appraised value.
To register the deed with the Public Registry of Property and Commerce of Mexico City (Registro Público de la Propiedad y de Comercio de la Ciudad de México), the public deed must include the property’s registry history, the certificate of no liens, the current appraisal, the certificate of no unpaid contributions (water, property tax) and proof of payment of the corresponding ISAI.
If you plan to buy or sell real estate in Mexico City, the advice of a specialist in civil law in Mexico City is essential to protect your investment and avoid future legal problems.
Lease Agreements: Rights and Obligations in Mexico City
Special provisions govern lease agreements in Mexico City and protect both the lessor and the lessee. The Civil Code for Mexico City contains rules of public order and social interest on residential leases, which means the parties cannot contract around them.
Lessor’s obligations under Articles 2412 to 2424 of the CCCDMX: deliver the property in adequate habitable condition, make the repairs necessary to preserve the property (except minor repairs that fall to the lessee), refrain from interfering with the use of the leased property, guarantee peaceful use of the property and answer for hidden defects in the leased thing.
Lessee’s obligations under Articles 2425 to 2445: pay the rent on the agreed terms, keep the property in good condition, refrain from altering the property without the lessor’s consent, notify the lessor of necessary repairs and return the property at the end of the contract in the condition in which the lessee received it.
Special regulations in Mexico City. Lease agreements for residential property in Mexico City must follow these rules:
| Aspect | Regulation in Mexico City |
|---|---|
| Minimum term | 1 year for housing (Art. 2448-C CCCDMX) |
| Rent increase | Never above the annual inflation that Banxico reports (Art. 2448-D CCCDMX, 2024 reform) |
| Security deposit | Maximum of one month’s rent (Art. 2448-E CCCDMX) |
| Right of first refusal (derecho del tanto) | The lessee has priority if the lessor sells (Art. 2448-J CCCDMX) |
| Mandatory extension (prórroga forzosa) | Right to continue for up to one more year during a dispute |
If either party breaches its contractual obligations, the other party can seek rescission of the contract and damages. Lic. Mariana Ortega advises both lessors and lessees on drafting, reviewing and litigating lease agreements in Mexico City.
Nullity of Civil Contracts: Causes and Consequences
Nullity is the legal sanction that deprives a contract of legal effects because the parties signed it in violation of mandatory rules. The Civil Code for Mexico City distinguishes between absolute nullity and relative nullity, each with different characteristics and consequences.
Absolute nullity. Under Articles 2225 and 2226 of the CCCDMX, absolute nullity arises when the contract has an unlawful object, motive or purpose, meaning one contrary to laws of public order or to good morals. Its main characteristics: any interested person (not only the parties) can invoke it, no one can confirm or ratify it, the right to invoke it does not lapse, and the act produces provisional effects until the judge declares the nullity and retroactively erases them (Article 2226).
Relative nullity. Articles 2227 to 2242 of the CCCDMX regulate it. It arises when the contract suffers from a defect in consent (error, fraud, violence or lesion), when one of the parties lacks legal capacity, or when the parties did not follow the form the law prescribes. Unlike absolute nullity: only the affected party can invoke it, the parties can confirm or ratify the contract, the right to invoke it lapses, and it takes effect only after a court declares it.
Specific causes of nullity that appear frequently in practice:
Substantial error about the identity of the thing, or about qualities that were decisive for signing the contract, produces relative nullity. For example, a person buys land believing it has residential land use when in fact it is zoned for ecological conservation.
Fraud (dolo), meaning any scheme or artifice used to induce or maintain error in one of the contracting parties, vitiates consent and produces relative nullity under Article 1815 of the CCCDMX.
Lesion, provided for in Article 17 of the CCCDMX, occurs when one contracting party obtains an excessive and evidently disproportionate profit by exploiting the other party’s utter ignorance, notorious inexperience or extreme poverty.
If you suspect that a contract you signed has a defect that could make it null, request an initial consultation to assess your legal situation.
Rescission of Civil Contracts in Mexico City
Rescission is the dissolution of a contract because one of the parties failed to perform. Unlike nullity, rescission presupposes a valid contract that one party has stopped performing. Article 1949 of the Civil Code for Mexico City provides the legal basis. It gives the creditor the power to ask for termination of the contract when the debtor fails to perform its obligation.
Requirements to seek rescission. The party who seeks rescission must prove four things: the contract exists and is valid, that party has performed or is able to perform its obligations, the other party has breached its contractual obligations, and the breach is serious enough to justify ending the contractual bond.
Procedure. Rescission can be judicial or conventional. Judicial rescission requires a civil lawsuit before the civil courts of Mexico City, located in the facilities of the Superior Court of Justice. The case follows the rules of the ordinary civil trial (juicio ordinario civil) and takes 12 to 18 months on average. Conventional rescission applies when the parties agreed on an out-of-court mechanism to terminate the contract, such as an express resolutory clause.
Effects of rescission. Rescission produces restitution: each party must return what it received from the other. The performing party also has the right to demand damages caused by the breach, under Articles 2104 to 2118 of the CCCDMX. Damages (daños) cover the loss or impairment suffered, while lost profits (perjuicios) cover the lawful gain that the party failed to obtain.
Note that Article 1949 of the CCCDMX gives the creditor an option: the creditor can ask for rescission of the contract or demand forced performance, in both cases with damages. The choice between the two actions should rest on a strategic analysis of the circumstances of the case. For topics related to compensation for damages, read our article on civil liability in Mexico City.
Limitation Periods for Actions Arising from Civil Contracts
Prescription (prescripción) extinguishes the right to bring an action through the passage of time. For civil contracts, you need to know the limitation periods so that you do not lose the chance to exercise your rights before the courts of Mexico City.
The Civil Code for Mexico City sets specific limitation periods for different contractual actions:
| Type of action | Limitation period | Legal basis |
|---|---|---|
| Nullity action for defects in consent | 6 months (violence), 60 days from discovery of the error | Arts. 2236 and 2237 CCCDMX |
| Rescission action for breach | 10 years (general rule) | Art. 1159 CCCDMX |
| Collection of lease rent | 5 years | Art. 1162 CCCDMX |
| Collection of professional fees | 2 years | Art. 1161, sec. I CCCDMX |
| Action for hidden defects in a sale | 6 months from delivery | Art. 2149 CCCDMX |
| Liability for eviction (evicción) | Lapses with the underlying action | Art. 2119 et seq. CCCDMX |
| General limitation of personal actions | 10 years | Art. 1159 CCCDMX |
Interruption of the limitation period. The causes in Article 1168 of the CCCDMX can interrupt the limitation period: the filing of a lawsuit before the courts, the express or tacit acknowledgment of the right by the obligor, or a judicial demand (interpelación judicial). Document every interrupting act properly so that you do not lose rights.
Practical recommendation. If you believe someone has violated your rights under a civil contract, do not wait until the limitation period nears its end. Time works against you not only because of prescription but also because evidence can be lost or weakened as time passes. Request an initial consultation as soon as possible to evaluate the viability of your case.
Notarial Formalization of Contracts: When It Is Mandatory in Mexico City
Formalizing contracts before a notary public raises frequent questions among Mexico City residents. Article 1832 of the Civil Code for Mexico City sets the general principle of freedom of form: contracts are valid in whatever form the parties sign them, as long as the law does not require a specific form. Still, the law requires a public deed in many situations.
Contracts that must be in a public deed:
The sale of real estate when its appraised value exceeds 365 times the Mexico City Unit of Account (Art. 2320 CCCDMX). Gifts of real estate, in the same form their sale requires (Art. 2345 CCCDMX). The creation of a mortgage, with the same formalities as Articles 2317 and 2320 (Art. 2917 CCCDMX). A trust (fideicomiso) over real estate. The creation of a condominium property regime. General powers of attorney for acts of ownership, administration and lawsuits and collections when the principal grants them before a notary.
Consequences of not formalizing before a notary when it is mandatory. Failure to follow the form the law prescribes produces relative nullity of the contract under Article 2228 of the CCCDMX. This nullity has a special feature, however: under Article 2232, when the will of the parties is clearly established and the act is not revocable, either party can demand that the legal form be granted. In other words, if you bought real estate through a private contract and both parties delivered the property and paid the price, you can sue to compel the seller to execute the corresponding public deed.
Notary costs in Mexico City. The Notary Law for Mexico City sets the fee schedule (arancel) that regulates notary fees in Mexico City. For real estate sales, the total notary cost (which includes the notary’s fees, taxes, registration fees and certificates) generally ranges between 5% and 8% of the value of the transaction, depending on the amount and the complexity. On larger transactions, the percentage tends to be lower.
When a specialist in civil law in Mexico City accompanies you through the notarial process, your interests stay protected and the contract includes every necessary clause.
Electronic Contracts and Their Legal Validity in Mexico City
As transactions go digital, contracts signed by electronic means have gained importance in Mexico City. Article 1834 bis of the Civil Code for Mexico City expressly recognizes the validity of contracts signed through electronic, optical or any other technological means.
Legal framework. The validity of electronic contracts in Mexico City rests on Article 1834 bis of the CCCDMX, the Federal Consumer Protection Law (Ley Federal de Protección al Consumidor, for consumer relationships), NOM-151-SCFI-2016 on the preservation of data messages, the Commercial Code (Articles 89 to 114 bis, for electronic commerce acts) and the Advanced Electronic Signature Law (Ley de Firma Electrónica Avanzada).
Validity requirements. An electronic contract is valid when it meets the same essential and validity elements as any civil contract: consent, object, capacity, absence of defects and lawfulness. The parties must also guarantee the integrity of the information, the attribution of the data messages to the parties and the preservation of the contract on reliable media.
Electronic signature. An advanced electronic signature has the same legal validity as a handwritten signature. To obtain your advanced electronic signature (e.firma), you can go to the Tax Administration Service (Servicio de Administración Tributaria, SAT) or, for specific Mexico City procedures, to the corresponding offices of the Mexico City government. A simple electronic signature (such as accepting terms with a click) can also have legal effects, although its evidentiary value is lower.
Limitations. Parties cannot sign every contract electronically. Contracts that require a public deed (such as the sale of real estate above a certain value) require the notary public to intervene in person, although Mexico City notaries have made progress in adopting digital systems for some complementary procedures.
How to Draft a Safe Civil Contract: Practical Recommendations
Careful drafting is the best preventive tool against future disputes. Lic. Mariana Ortega offers the following key recommendations for signing civil contracts in Mexico City.
Identify the parties completely. Include each party’s full name, nationality, marital status, occupation, address, RFC (tax ID) and CURP (population registry ID). For legal entities, include the company name, the details of the notarial deed of incorporation and the details of the legal representative with proven authority.
Describe the object precisely. Be as specific as possible when you describe the asset or service that is the object of the contract. For real estate, include the full description with surface area, measurements, boundaries, location with street, number, neighborhood, borough (alcaldía) and postal code, as well as the registry data (the real folio number at the Public Registry of Property of Mexico City).
Set the price and form of payment. State the total price in numbers and words, the currency of payment, the payment dates and method, late-payment interest in case of breach (within legal limits) and any adjustment mechanisms that apply.
Add recommended protective clauses. Every well-drafted civil contract should include: a contractual penalty clause (Articles 1840 to 1846 of the CCCDMX) that fixes the amount of compensation in case of breach; a jurisdiction clause that submits disputes to the courts of Mexico City; an address clause for hearing and receiving notices; a confidentiality clause when it applies; and a dispute resolution mechanism (mediation, conciliation, arbitration or ordinary courts).
Sign and formalize. Make sure all parties sign every page of the contract, not only the last one. Include the signature of at least two witnesses with their identification details. When the law requires it or when it is strategically convenient, formalize the contract before a notary public. If you need guidance to draft or review a civil contract, request an initial consultation with our firm.
Frequently Asked Questions
Is a verbal contract legally valid in Mexico City?
Yes. Under the principle of freedom of form in Article 1832 of the Civil Code for Mexico City, a verbal contract can be valid as long as the law does not require a specific form. The fundamental problem with verbal contracts is proof, however: in a dispute, it is extremely hard to show that the agreement existed and what its terms were. For this reason, we always recommend that you put contracts in writing.
Can I terminate a lease agreement before the agreed term?
It depends on the circumstances. The lessee can seek early rescission if the lessor breaches its obligations (for example, by failing to make necessary repairs). The lessor can rescind if the lessee does not pay rent, sublets without authorization or uses the property for a purpose other than the one agreed. If you want to end the contract without a justified cause, you will need to negotiate with the other party and possibly pay compensation as the contract or the law provides.
What happens if I sign a contract under pressure or deception?
If someone obtained your consent through violence (physical or moral pressure) or fraud (deception), you can annul the contract for a defect in consent under Articles 1812 to 1823 of the CCCDMX. You must file the nullity action within the legal deadlines: 6 months for violence (counted from when it ends, Article 2237) and 60 days for error (counted from when you discover it, Article 2236). Act quickly and consult a specialist lawyer.
Do I have to register a lease agreement with any authority?
Yes. Since the 2024 reform, Article 2448 F of the CCCDMX requires the lessor to record the residential lease in the Digital Registry of Lease Agreements (Registro Digital de Contratos de Arrendamiento) within 30 days after signing. For tax purposes, both the lessor and the lessee must report the corresponding income and deductions to the SAT. In a court dispute, a properly formalized contract (with a certain date, ratification of signatures or notarial protocolization) also strengthens the procedural position of the parties significantly.
How much does it cost to have a contract done before a notary in Mexico City?
Costs vary by type of contract and value of the transaction. For a real estate purchase and sale contract, total notary expenses (including fees, taxes and duties) generally represent between 5% and 8% of the value of the transaction. For simpler contracts, such as the ratification of signatures on a lease agreement, costs run approximately MXN $1,500 to MXN $4,000. We recommend that you request a quote directly from the notary.
Can I include a penalty clause in my civil contract?
Yes. Articles 1840 to 1846 of the Civil Code for Mexico City allow penalty clauses in civil contracts. The penalty clause sets a contractual penalty that replaces compensation for damages in case of breach. The contractual penalty cannot exceed the main obligation in value or amount, under Article 1843 of the CCCDMX. If the penalty is excessive, the judge can reduce it equitably.
You May Also Be Interested In
Does your case need legal attention?
Talk directly with a specialist lawyer. We evaluate your situation, explain your options, and give you a transparent quote in a single call.