Objective To explore the relationship of sleep quality and emotional regulation difficulties in middle school students,and to analyze its mediating role of daytime dysfunction,social rejection and self-control ability,so as to provide a scien-tific reference for improving middle school students'mental health.Methods From October to November,2023,the Pittsburgh Sleep Quality Index,Adolescent Social Rejection Questionnaire,Brief Self-control Scale and Difficulties in Emotion Regulation Scaleshort Form(DERS-16)were used to assess 806 students recruited from four middle schools in Bengbu City by a convenient cluster random sampling method.And model-6 of PROCESS and 5 000 Bootstraps were used to make a chain-mediating model anal-ysis.Results Daytime dysfunction was positively correlated with sleep quality(r=0.57),social rejection(r=0.19),self-control(r=0.29,P<0.01).Self-control was positively correlated with emotional regulation difficulties(r=0.54,P<0.01).Poor sleep quality showed a significant positive association with on daytime dysfunction,and daytime dysfunction further affected social rejection,self-control ability and emotional regulation difficulties(β=0.86,0.60,1.27,1.56,P<0.05).Meanwhile,daytime dysfunction,social rejection and self-control played a serial mediating role in the relationship between sleep quality and emotional regulation difficulties(Estimate=0.11,95%CI=0.04-0.20,P<0.05).Conclusion The study reveals the complex relationship between sleep quality and emotional regulation difficulties in middle school students and provides a new theoretical basis for adolescent sleep improvement and mental health interventions.