Codified under Article 38 of the Constitution of the Republic of Türkiye, Article 2 of the Turkish Penal Code No. 5237 (TPC), and Article 7 of the European Convention on Human Rights (ECHR), the principle of legality (nullum crimen, nulla poena sine lege) prohibits punishing any act not expressly defined as a crime by a statute in force at the time of commission and forbids imposing any penalty or security measure heavier than that prescribed by law. Far beyond a formal requirement of parliamentary enactment, legality imposes four cumulative constitutional constraints: statutory exclusivity (lex scripta), non-retroactivity of adverse norms (lex praevia), legal certainty (lex certa), and the prohibition of analogy and unforeseeable expansion (lex stricta).
Article 38/1 of the Constitution guarantees legality of crimes, while Article 38/3 ("Penalties and security measures substituting for penalties shall be prescribed only by law") secures legality of sanctions. Reinforced by Article 13 (requiring statutory basis for restrictions on fundamental rights) and Article 104/17 (prohibiting ordinary Presidential Decrees from regulating fundamental rights and duties), TPC Article 2/1 and 2/2 translate this mandate into criminal practice: no act can be punished unless expressly criminalized by law, and crimes or penalties cannot be created through regulatory acts of the executive (regulations, communiqués, circulars, or administrative guidelines).
A critical distinction exists between criminal offenses and administrative misdemeanors. Under Article 4/1 of the Misdemeanors Law No. 5326, the substantive content of a framework statutory provision defining a misdemeanor may be filled in by general regulatory acts of the administration; however, Article 4/2 strictly requires that the type, duration, and amount of the administrative sanction be determined exclusively by statute. Even for framework criminal norms (so-called blanket criminal laws, such as TPC Art. 195 regarding measures against contagious diseases), the Constitutional Court requires that the core elements of the prohibited conduct and the outer boundaries of the sanction be unambiguously drawn in the statute itself.
"Paragraph (1) of Article 38 of the Constitution secures legality of crimes by stating that 'No one shall be punished for any act which does not constitute a criminal offence under the law in force at the time committed,' and paragraph (3) secures legality of penalties by stating that 'Penalties and security measures replacing penalties shall be prescribed only by law.' The principle of legality in crimes and penalties envisaged in the Constitution constitutes one of the fundamental principles of criminal law today, where an approach centered on human rights and freedoms prevails. Similar to Article 38 of the Constitution, the principle of legality in crimes and penalties regulated in Article 2 of the Turkish Penal Code No. 5237 dated 26/9/2004 requires that prohibited acts and the penalties to be imposed for such prohibited acts be specified in the statute without leaving room for any doubt, and that the rule be clear, comprehensible, and have defined boundaries. Based on the rationale that individuals should know prohibited acts in advance, this principle aims to safeguard fundamental rights and freedoms (TCC, E.2010/69, K.2011/116, 7/7/2011)."
While procedural rules in the Code of Criminal Procedure No. 5271 (CMK) are governed by the principle of immediate application (derhal uygulanırlık), coercive protective measures that restrict liberty, privacy, or property—such as pre-trial detention (CMK Art. 100), search and seizure (CMK Arts. 116–134), and telecommunications interception (CMK Art. 135)—remain strictly bound by formal and substantive legality under Articles 13 and 19 of the Constitution. Likewise, in administrative sanction appeals before Criminal Judicatures of Peace under Law No. 5326, sanctioning an enterprise based on a regulation or ministry circular lacking an explicit statutory framework triggers direct violation of Article 38.
Effective criminal and administrative defense grounded in the principle of legality requires four targeted checks: auditing whether every objective and subjective statutory element (tipiklik) is strictly satisfied without resort to analogy; conducting a chronological comparison under TPC Article 7 whenever statutory amendments occurred between the offense date and adjudication; challenging any administrative fine or criminal charge anchored in secondary regulations or non-binding guides; and raising an unconstitutionality objection under Article 152 of the Constitution before the trial court—followed, if necessary, by an individual application to the Constitutional Court under Article 148—whenever a statutory penal provision lacks foreseeability and clear boundaries.