Since 2017, complaints of sexual violence have increased in France. At the same time, the management of sexual offenders has been at the center of international public health policies. The prevalence of mental disorders among sexual offenders is an essential field of research. There are some published studies on the prevalence of psychiatric disorders in sexual offenders in detention, but there are few recent published studies among French individuals who were detained. Our objectives were to determine the prevalence of psychiatric disorders among persons detained for sexual offenses and the level of care received according to their diagnosis. For this purpose, we carried out a retrospective observational study from January 2017 to October 2021 of all adult sexual offenders, whether accused or convicted, who were seen in the psychiatric consultation unit of Les Baumettes prison, Marseille, France. The primary outcome measure was the psychiatric diagnosis entered in the medical records. One hundred forty‐two patients were included in analysis. All patients were men, and the majority (n = 97, 68.3%) of these patients presented with at least one psychiatric disorder, principally a personality disorder (31.7%). 10.6% presented with a schizophrenic disorder, 4.9% a bipolar disorder, 3.5% a depressive disorder, 5.6% pedophilic paraphilia, and 25.4% an addictive disorder. Their management and comorbid addictions were analyzed in subgroups for each psychiatric disorder. Patients appeared to receive an appropriate level of care for their diagnosed disorder. It seems important to develop structured assessment of recidivism risk for better management of sexual offenders.