Article 57 [source]

Spanish Criminal Code
English translation

1. In cases of homicide, abortion, bodily harm, crimes against liberty, torture, crimes against moral integrity, human trafficking, crimes against sexual freedom and integrity, privacy, the right to one's own image and the inviolability of the home, honor, property, the socio-economic order, and family relations, the judicial authorities, taking into account the seriousness of the acts or the danger posed by the offender, may order in their judgments the imposition of one or more of the prohibitions set forth in Article 48, for a period not exceeding ten years if the crime is serious, or five years if it is less serious.

Notwithstanding the foregoing, if the convicted person is sentenced to imprisonment and the Judge or Court orders the imposition of one or more of these prohibitions, the period shall be between one and ten years longer than the term of imprisonment imposed in the judgment if the crime is serious, and between one and five years if it is less serious. In this case, the prison sentence and the aforementioned prohibitions will necessarily be served simultaneously by the convicted person.

2. In the cases of the offenses mentioned in the first paragraph of section 1 of this article committed against a current or former spouse, or against a person who is or has been linked to the convicted person by a similar relationship of affection, even without cohabitation, or against the descendants, ascendants, or siblings by birth, adoption, or affinity, whether of the convicted person or of the spouse or cohabitant, or against minors or persons with disabilities in need of special protection who live with the convicted person or who are subject to the parental authority, guardianship, curatorship, foster care, or de facto custody of the spouse or cohabitant, or against a person protected by any other relationship by which they are integrated into the core of the convicted person's family life, as well as against persons who, due to their special vulnerability, are under the convicted person's custody or care in public or private centers, the application of the penalty provided for in section 2 of article 48 shall, in all cases, be ordered for a period not exceeding ten years if the offense is serious, or five years if it is less serious, without prejudice to The provisions of the second paragraph of the preceding section.

3. The prohibitions established in Article 48 may also be imposed, for a period of time not exceeding six months, for the commission of the offenses mentioned in the first paragraph of section 1 of this Article that are considered minor offenses.