While repetitive transcranial magnetic stimulation (rTMS) is effective for 50-60% of those treatment-resistant depression, it is critical to identify predictors of response for optimal patient selection to improve therapy. Insomnia is a known symptom of depression that is both correlated with depression severity and associated with poor antidepressant response. Therefore, understanding this relationship may open new opportunities for the optimization of rTMS treatment. We aimed to explore whether baseline sleep quality, specifically insomnia, is associated with rTMS outcomes in a naturalistic sample of 975 patients (age 18-90; 63.9% F) receiving a standard course of rTMS treatment from two outpatient TMS clinics located within psychiatric hospitals in the United States. One site additionally collected information on concurrent medication use on 350 patients; among these, we examined whether pharmacological treatment of insomnia affected TMS treatment response. Depression was measured using the 30-item Inventory of Depressive Symptomology Self Report (IDS-SR) in site one and an abbreviated 16-item Quick Inventory of Depressive Symptomology (QIDS) derived from the IDS-SR in site two. Sleep disturbances were measured using three insomnia-related questions. Multilevel logistic regression was used to determine whether baseline insomnia scores were associated with TMS treatment outcome. Upon dichotomous categorization of the sample by insomnia and sleep-medication use, depression and sleep scores were analyzed across time using mixed repeated measures ANOVA. We found that sleep quality improves after TMS (p<.001) and correlates with improvement in non-insomnia related depression symptoms (r= .318, p<.001). We found that among those who had significant insomnia at baseline, those not using sleep medications had significantly worse post-treatment IDS-SR scores compared to those using sleep medications (p=. 021) despite no difference in final insomnia score. Together, our results suggest that while baseline insomnia is not associated with TMS effectiveness, treating insomnia may affect the trajectory of TMS therapy. Future prospective studies are needed to examine the effect of insomnia treatment alongside TMS for depression.