Article 163 [source]

Spanish Criminal Code
English translation

1. Any individual who confines or detains another, depriving them of their liberty, shall be punished with imprisonment for four to six years.

2. If the offender releases the confined or detained person within the first three days of their detention, without having achieved their intended objective, the penalty shall be reduced by one degree.

3. A prison sentence of five to eight years shall be imposed if the confinement or detention has lasted more than fifteen days.

4. Any individual who, outside the cases permitted by law, apprehends a person to immediately present them to the authorities shall be punished with a fine of three to six months.