Cybercrime Law in Mexico

Mexico punishes computer crime mainly through a short chapter of its Federal Criminal Code, and each of its 32 states also has a penal code with its own offences. The country has no general cybersecurity law, and in 2025 it replaced its data-protection law and the authority that enforced it.

Key laws

  • Código Penal Federal (Federal Criminal Code), Title Nine, Chapter II, “Unlawful access to computer systems and equipment” (Arts. 211 bis 1 to 211 bis 7). It punishes modifying, destroying or causing the loss of information in systems protected by a security mechanism, and knowing or copying that information without authorisation. Penalties rise when the system belongs to the state, to the institutions of the financial system, or relates to public security.
  • “Ley Olimpia” reforms (2021): amendments to federal and state law that criminalise recording, sharing or publishing intimate images without consent and recognise digital violence against women. The name honours the activist Olimpia Coral Melo.
  • Federal Law on the Protection of Personal Data Held by Private Parties (LFPDPPP): a new law published on 20 March 2025, in force the next day, replacing the 2010 law. Enforcement passed from the dissolved INAI to the Secretaría Anticorrupción y Buen Gobierno. A separate general law covers personal data held by public bodies.

Mexico is not a party to the Budapest Convention. It is on the Council of Europe’s list of states invited to accede, but has not done so.

Enforcement

The Fiscalía General de la República (FGR) prosecutes federal cybercrime, and the Guardia Nacional has a cyber unit that monitors and investigates online crime. Most states and Mexico City run their own cyber police units. The Agencia de Transformación Digital y Telecomunicaciones leads federal digital policy, including government information security.


Plain-language overview, not legal advice. Federal and state laws both apply, and they differ. Read the current text on the Chamber of Deputies’ legislation site and seek qualified advice for any specific matter.

Sources checked 13 November 2026 against the Chamber of Deputies’ federal legislation database, law-firm analyses of the 2025 data-protection law, and Council of Europe accession records.