Article 231 [source]

Spanish Criminal Code
English translation

1. Anyone who, having charge of the upbringing or education of a minor or a person with a disability in need of special protection, hands them over to a third party or a public establishment without the consent of the person who entrusted them to their care, or of the authorities in their absence, shall be punished with a fine of six to twelve months.

2. If the handover has placed the life, health, physical integrity, or sexual freedom of the minor or the person with a disability in need of special protection in concrete danger, a prison sentence of six months to two years shall be imposed.