Sleep problems positively predict loneliness to a large extent, which would harm adolescent health. However, little is known about the underlying mechanism. This research investigates the potential mediating roles of rumination and resilience in the relation among adolescents and further examines the changing relationships. In Study 1, 1056 adolescents from two schools completed self-reported measures of sleep problems, loneliness, rumination, and resilience. We found that sleep problems were positively associated with loneliness, and that rumination and resilience mediated this relationship, both individually and sequentially. To examine the varying relationship between rumination, resilience, and loneliness, Study 2 adopted the cross-lagged design in a long-term longitudinal study of 131 students and found that rumination and resilience at T1 significantly predict loneliness at T2. To further directly explore the changing relationship between sleep problems and loneliness, we performed a short-term longitudinal study across 7weeks of 242 adolescents in Study 3. The results replicated the findings of Study 2 and found sleep problems at T1 positively predicted loneliness at T2. These results underscore the significance of sleep problems in contributing to loneliness through mediating mechanisms and unveil the possible causal relationships, offering robust insights to alleviate adolescent loneliness.