Article 505 of the Criminal Procedure Act governs the hearing at which pre-trial detention is decided. Its architecture matters to anyone arrested in Spain: the court cannot order detention on its own initiative, so if neither the prosecutor nor a private accuser applies for it, release is mandatory. The hearing must be held within seventy-two hours of the arrested person being brought before the court, the defence has a right of access to the material essential to challenge the deprivation of liberty, and evidence may be proposed and taken at the hearing itself. For a foreign national this is the single most important stage of the early proceedings.
1. Where the arrested person is brought before the investigating judge or the court that is to hear the case, that judge or court shall, unless it orders release on provisional liberty without bail, convene a hearing at which the Public Prosecution Service or the accusing parties may apply for the pre-trial detention of the person under investigation or accused, or for provisional liberty on bail.
In the cases of the procedure regulated in Title III of Book IV of this Act, this step shall be conducted in accordance with article 798, unless the hearing has already been held.
2. The hearing provided for in the preceding paragraph must be held as soon as possible within the 72 hours following the placing of the arrested person at the disposal of the court, and there shall be summoned to it the person under investigation or accused, who must be assisted by a lawyer chosen by him or appointed by the court, the Public Prosecution Service and the other parties who have appeared. The hearing must also be held in order to apply for and, where appropriate, order the pre-trial detention of a person under investigation or accused who has not been arrested, or that person’s provisional liberty on bail.
3. At that hearing, if the Public Prosecution Service or any accusing party applies for the pre-trial detention of the person under investigation or accused, or for provisional liberty on bail, those attending may make submissions and propose means of evidence capable of being taken at the hearing itself or within the seventy-two hours referred to in the preceding paragraph.
The lawyer of the person under investigation or accused shall in all cases have access to the elements of the proceedings that are essential in order to challenge the deprivation of liberty of that person.
4. The judge or court shall decide whether or not detention or bail is appropriate. If none of the parties applies for them, it shall necessarily order the immediate release of the person under investigation or accused who is under arrest.
5. If for any reason the hearing cannot be held, the judge or court may order pre-trial detention, where the requirements of article 503 are met, or provisional liberty on bail. Nevertheless, within the following 72 hours the judge or court shall convene a fresh hearing, adopting such measures as are appropriate in respect of the failure to hold the first hearing.
6. Where the arrested person is brought before a judge other than the judge or court hearing or to hear the case, and the arrested person cannot be brought before the latter within 72 hours, the former shall proceed in accordance with the preceding paragraphs. Nevertheless, once the judge or court hearing the case receives the file, it shall hear the person under investigation or accused, assisted by his lawyer, as soon as possible and shall issue the appropriate decision.
Working translation prepared by Société Juridique from the consolidated Spanish text published by the Official State Gazette. It has no official status: the only authoritative version is the Spanish original, available at the Official State Gazette and reproduced verbatim in our Spanish-language entry for this provision. Source: Royal Decree of 14 September 1882 approving the Spanish Criminal Procedure Act.
Using the right of access to the file. The article guarantees access to the material essential to contest the detention, and in practice that material is often produced only on request and in incomplete form. The defence asks for it in writing at the outset of the hearing and, where it is refused or curtailed, records the objection, because the refusal is a ground of appeal and, in a subsequent application for review, evidence that the initial decision rested on material the defence never saw.
Presenting evidence at the hearing itself. Paragraph 3 permits evidence to be proposed and taken at the hearing or within the seventy-two hours. This is where a case for release is won: a certificate of registration at a Spanish address, an employment contract, evidence of children at school in Spain, the surrender of a passport and the offer of regular reporting to a police station convert an abstract flight risk into a documented connection with the jurisdiction. For non-resident foreign nationals the equivalent material is a tenancy, a family member willing to give an undertaking and evidence of a fixed address abroad with an offer of appearance.
The absence of an application by any party. Paragraph 4 is categorical: if neither the prosecutor nor a private accuser applies for detention or bail, release is mandatory. Where the prosecutor’s position is unclear, the defence invites the court to record it expressly, because a hearing that concludes without any formal application must end in release.
Alternatives to detention and subsequent review. The defence prepares a concrete alternative rather than a general plea: bail in a stated amount with the source of the funds documented, surrender of the passport, a prohibition on leaving the country, electronic monitoring where it is available, and periodic reporting. Where detention is nevertheless ordered, the decision is appealable and may be reviewed at any time on a change of circumstances, so the material that was not available at the first hearing is assembled immediately for the application that follows.
Are you under investigation or facing charges in Spain? Société Juridique acts for foreign nationals throughout Spain, with offices in Alicante and Madrid and a 24-hour custody line. +34 669 30 21 13 or enquire online.
This entry is provided for information only and does not constitute legal advice. The application of any provision depends on the circumstances of the individual case and requires examination of the case file by a qualified lawyer.