Background and Objective:Several factors affect the attitude of nursing students towards the elderly, one of which is mental health. The aim of this study was to investigate the role of mental health predictors on nursing students' attitudes towards the elderly. Methods:In this cross-sectional descriptive study, 167 students who met the inclusion criteria were selected using the convenience sampling method. Data were collected using a demographic questionnaire, Kogan's Attitudes towards Older People Scale (KAOPS), and Ryff’s Psychological Well-being Scale (RPWBS). Data were analyzed through SPSS 22 using the regression test and independent t-test. Findings:According to the results, 23.4 and 76.6% of the participants had moderate and poor attitudes towards the elderly and the total mental health score was 64.95+19.08, indicating that the mental health status of students was moderate.There was a direct linear relationship between nursing students' attitudes towards the elderly and their mental health status. Nevertheless, a moderate correlation was found between the two variables(p <0.001 r = 0.49). Conclusion:Since the attitude of nurses and nursing students who care for the elderly is predictable via their level of mental health, it seems that the evaluation of this trait in students who will provide services to the elderly in the future can improve students’ attitudes and prevent phenomena such as age discrimination.