The association between social isolation and cognitive performance has been less investigated in low-to-middle-income countries (LMIC) and the presence of depression as a moderator on this association has not been examined. The authors examined the associations of social isolation and perceived loneliness with cognitive performance in the Brazilian Longitudinal Study of Aging. In this cross-sectional analysis, social isolation was evaluated by a composite score including marital status, social contact, and social support. The dependent variable was global cognitive performance, which considered memory, verbal fluency, and temporal orientation tests. Linear and logistic regressions were adjusted for sociodemographic and clinical variables. The authors added interaction terms of depressive symptoms with social isolation and loneliness to examine whether depression, measured through the Center for Epidemiologic Studies-Depression Scale, modified these associations. Among 6,986 participants (mean age=62.1 ± 9.2 years), higher levels of social connections were associated with better global cognitive performance (B=0.02, 95%CI: 0.02; 0.04). Perceived loneliness was associated with worse cognition (B=-0.26, 95%CI=-0.34; -0.18). Interactions of depressive symptoms with social connections scores were found on memory z-score and with loneliness on global and memory z-scores, suggesting a weaker association between social isolation or loneliness and cognition among those with depressive symptoms. In a large sample from an LMIC, social isolation and loneliness were associated with worse cognitive performance. Surprisingly, depressive symptoms decrease the strength of these associations. Future longitudinal studies are important to assess the direction of the association between social isolation and cognitive performance.