Two consolidated matters concerned accused persons with intellectual disabilities who were found incapable of understanding court proceedings under section 77 of the Criminal Procedure Act 51 of 1977. Mr Stuurman, a child at the time of the alleged offence, was charged with murder; Mr Snyders, an adult, was charged with rape. In both cases psychiatric evaluations confirmed severe intellectual disability and inability to understand proceedings. Section 77(6)(a) compelled courts, after a factual enquiry, to order detention in prison or psychiatric institutions without discretion. The applicants challenged the constitutionality of these peremptory detention provisions, arguing that they infringed rights to freedom and security of the person and, in respect of children, violated section 28 of the Constitution.