Article 434 [source]

Spanish Criminal Code
English translation

If the person responsible for any of the acts described in this chapter has effectively and fully repaired the damage caused to public assets before the start of the oral trial, or has actively and effectively collaborated with the authorities or their agents to obtain decisive evidence for the identification or capture of other responsible parties or for the complete clarification of the criminal acts, the judges and courts will impose on the person responsible for this crime a penalty one or two degrees lower.