CIMI Medina Azahara (Spanish: Centro Para Menores Infractores) is a juvenile detention facility in Cordóba, Spain and was founded in 1991. It is part of the Diagrama Foundation, which has more than 35 secure educational centers throughout Europe and aims to support vulnerable people at risk of social exclusion. For young people to rehabilitate, they need a lot of family involvement and support. CIMI Medina Azahara is described as a re-education center that focuses mainly on promoting autonomy, where they use different zones with each its own level of autonomy.