PURPOSE: This study aimed to assess the educational environment of resident in Morocco and to compare the residents' perception depending on their specialties. ...CONCLUSION: French version of the PHEEM score is a valid and reliable instrument in Morocco. Moroccan resident perceived their educational environment as more positive than negative but room for improvement of many challenges particularly the poor infrastructure, the suboptimal quality of supervision, and teaching and inadequate work regulation remained....