Article 27 [source]

Spanish Criminal Code
English translation

The perpetrators and accomplices are criminally responsible for the crimes.