PurposeThe purpose of this paper is to study the factors associated with the occurrence of diseases and beriberi among prisoners incarcerated in the two largest Remand and Correctional Facilities (RCF).Design/methodology/approachThis was a cross-sectional descriptive and analytical study carried out from April 20 to May 19, 2017, in the RCFs of Ouagadougou and Bobo-Dioulasso. All prisoners who consulted and those referred to the health center by the health-care team were included in the study. Complaints and diagnosed diseases information were collected using the second version of the International Classification of Primary Care (ICPC-2). The authors used a logistic regression model to perform univariate and multivariate analyses.FindingsOf the 1,004 prisoners from the two RCFs included in the study (32.6%), 966 (96%) were male. The median age was 31.6 years. The distribution of diseases diagnosed using the ICPC-2 showed a predominance of gastrointestinal tract, skin and respiratory tract diseases among 206 (19.3%), 188 (17.6%) and 184 (17.2%) prisoners, respectively. A total of 302 prisoners (30.1%) had clinical beriberi, and 80 prisoners (8%) were underweight. Being incarcerated for more than nine months was independently associated with a high risk of digestive and respiratory diseases as well as beriberi.Research limitations/implicationsThis study highlighted higher frequencies of digestive, skin and respiratory complaints and diseases in the two largest detention centers in Burkina Faso. These diseases are variously related to age, penal status and length of incarceration. In addition, underweight and thiamin vitamin deficiency responsible for beriberi are more frequent in adult prisoners, those not attending school, convicted prisoners and those with a length of stay in detention of more than nine months. These concrete results should help define a strategy and priority actions needed to reduce morbidity in prisons.Practical implicationsThe actions should include the intervention of specialists in the field of common diseases in prisons, the improvement of individual hygiene conditions and environment, the improvement of the quality and quantity of the food ration, a strategy to reduce prison overcrowding. Other actions must be planned to allow specific groups such as women and minors to have access to health care that is adapted to them. Beyond the central concern of promoting the rights of prisoners and humanizing prisons, actions to improve the health of prisoners are part of an overall public health approach with its socio-economic and environmental implications.Social implicationsThere is a need for a strong commitment from the State to develop a prison health policy that prioritizes the prevention of communicable and non-communicable diseases that are particularly prevalent in this context, without forgetting mental health and nutrition. This requires a collaboration of stakeholders based on better intersectorial communication, the implementation of a monitoring and evaluation system for the health of prisoners, an enhancement of the status of health-care providers working in prisons and an increase in the funding allocated to the health of prisoners with the mobilization of the necessary funds.Originality/valueThis study uses a primary health care classification to assess the health of inmates in a prison in Africa. It contributes to the weak evidence around prison health surveillance and health profiling of prisoners in Africa.