The law of Mexico is based upon the Constitution of Mexico and follows the civil law tradition.
Law of Mexico Wikipedia
The civil law tradition (as developed by the legal scholars, i.e. doctrine) tends to treat the divisions of law in normative terms. There are two major areas of law: private law, concerning the relationships between individuals, and public law, concerning the relationships between individuals and the government. The civil code is the most important embodiment of law, based on Roman law. Other topics include those related to philosophy of law, including the major schools of thought and the major disagreements; objective law and subjective rights; substantive law and procedural law; statutory law and customary law; federal law, state law and municipal law; and national law, international law and community law.
Mexico's major codes regarding public law are the Federal Criminal Code (the criminal code) and the Federal Criminal Procedure Code (the code of criminal procedure).
Mexico's major codes regarding private law are the Federal Civil Code (the civil code), Federal Commercial Code (the commercial code), and the Federal Civil Procedure Code (the code of civil procedure).