5.  The applicant was born in 1980 and lives in Wojkowice. He is currently detained in the Zabrze Remand Centre.
6.  On 17 November 2003 the applicant was arrested on suspicion of attempted murder and uttering threats.
7.  On 19 November 2003 the Zabrze District Court remanded him in custody, relying on the reasonable suspicion that he had committed the offences in question, supported by evidence from witnesses and the applicant’s confession of having beaten the victim. It also considered that keeping the applicant in detention was necessary to secure the proper conduct of the proceedings. The court stressed the severity of the anticipated sentence, given the character of the offence and the magnitude of the injuries suffered by the victim. It found no special grounds that would justify lifting the detention and imposing a less severe measure.
8.  In the course of the proceedings, the applicant’s detention was extended by the Gliwice Regional Court on 9 February, 10 May and 11 October 2004 and 20 January 2005.
In all their detention decisions the authorities repeatedly relied on a strong suspicion that the applicant had committed the offences in question, which was supported by evidence from witnesses. They attached importance to the serious nature of those offences and the likelihood of a severe sentence of imprisonment being imposed on the applicant. They further considered that the need to secure the proper conduct of the proceedings justified holding him in custody and that the applicant, if released, could disrupt the trial.
9.  On 6 April 2005 the Gliwice Regional Court convicted the applicant of rape, aggravated assault and uttering threats and sentenced him to nine years’ imprisonment. The applicant’s detention was extended.
10.  On 7 July 2005 the Katowice Court of Appeal quashed the first‑instance judgment and remitted the case to the Gliwice Regional Court.
11.  Further decisions extending the applicant’s detention were taken on 8 August and 10 November 2005, and 24 January and 12 April 2006. On 5 May 2006 the Katowice Court of Appeal dismissed an interlocutory appeal by the applicant against the latter decision.
12.  Subsequent decisions prolonging the detention were given by the Gliwice Regional Court on 8 June and 13 October 2006.
13.  In the retrial proceedings the applicant made two applications for release, which were refused by the Gliwice Regional Court on 16 January and 10 July 2006. In his applications he relied on his personal circumstances. In particular, the need to ensure that his sick mother and his brother (a minor) were cared for.
14.  On 27 October 2006 the Gliwice Regional Court convicted the applicant of rape, aggravated assault and uttering threats and sentenced him to seven years’ imprisonment.
15.  On 8 January 2007 the Gliwice Regional Court prolonged the applicant’s detention. It held that in the light of the first-instance court’s judgment, the reasons for the applicant’s continued detention were still valid. A further interlocutory appeal was dismissed by the Katowice Court of Appeal on 31 January 2007.
16.  On 15 March 2007 the Katowice Court of Appeal upheld the first‑instance judgment.
17.  On 27 April 2007 the applicant lodged a request to have a legal-aid lawyer appointed to his case with a view to lodging a complaint questioning the constitutionality of Article 263 of the Polish Code of Criminal Procedure. On 28 August 2007, the applicant’s legal-aid counsel informed the Gliwice District Court, and the applicant, that he had found no grounds for lodging a constitutional complaint.
18.  On 27 October 2007 the Supreme Court dismissed a cassation appeal by the applicant against the judgment of 15 March 2007.
19.  On 14 December 2007 the applicant lodged a claim for compensation and just satisfaction for unjustified detention. On 6 February 2008 the Gliwice Regional Court dismissed the claim. The applicant’s legal‑aid counsel found no grounds for lodging an appeal against the judgment.