Article 19 [source]

Spanish Criminal Code
English translation

Persons under eighteen years of age shall not be criminally responsible under this Code.

When a minor under that age commits a criminal act, they may be held responsible in accordance with the provisions of the law governing the criminal responsibility of minors.