The current research studied one's connection between trait mindfulness and social anxiety in junior high school students using mental resilience as an intermediary variable. The Resilience Scale for Chinese Adolescents (RSCA), the Mindful Attention Awareness Scale, and the Social Anxiety Scale for Adolescents (SAS-A) were used for providing a survey to 276 Chinese junior high school students. The key findings were as follows: 1) Social anxiety, psychological resilience, and trait mindfulness were found to be significantly correlated; 2) Psychological resilience acted as a partial mediating factor in establishing a link between trait mindfulness and social anxiety among junior high school students. Thus, the more trait mindfulness junior high school children have, the less social anxiety they experience, with psychological resilience serving as a partly mediation role. All things considered, this results explain this process by which trait mindfulness impacts social anxiety in this age range, providing guidance for interventions aimed at reducing social anxiety in junior high school kids.