Resumen: Cognitive stimulation is essential for successful aging. The influence of sex and socio-occupational elements on this area remains unknown. This study aimed to analyze the possible mediation of those elements in the effectiveness of a cognitive stimulation program in primary care. A randomized clinical trial was conducted with 232 adults aged 65 years or older without cognitive impairment. The intervention produced significant cognitive improvements. Women improved independently of social and occupational factors, while men’s improvement occurred at a low role level (zero to one), a medium level of interests (two to three), with a medium level of mental occupation (neither high nor low), and with marked personal values. The mediating variables were the intervention group in both sexes and, also in men, a low and medium role level. Therefore, the intervention and roles appear as mediating variables moderated by sex. In conclusion, cognitive stimulation programs should be adapted. Idioma: Inglés DOI: 10.1177/07334648231154040 Año: 2023 Publicado en: Journal of Applied Gerontology 42, 7 (2023), 1486–1496 ISSN: 0733-4648 Factor impacto JCR: 2.2 (2023) Categ. JCR: GERONTOLOGY rank: 19 / 47 = 0.404 (2023) - Q2 - T2 Factor impacto CITESCORE: 5.1 - Gerontology (Q2) - Geriatrics and Gerontology (Q2)