The research on the effect of educational digital games on second-grade students' attitudes towards learning mathematics opens the doors to a new educational approach that will shape the mathematical abilities of the future. This study examines the effect of educational digital games on the attitudes of second-grade primary school students towards learning mathematics. The research study group comprised two branches of second-grade students in the same school in the 2023-2024 academic year. The research was carried out with "pre and post-test design with control group", one of the experimental design types of quantitative research method. The students were divided into 40 experimental groups and 40 control groups. During the research period, the experimental group was made to work from various digital educational programs such as Wordwall, GeoGebra, Derslig. The control group was taught with traditional methods. A 27-item, 5-point Likert-type Mathematics Attitude Scale (MAT) was used as a data collection tool. The scale was applied to both groups of students before and after the experimental application. The data obtained were analysed using the SPSS package program. The pre-test data revealed that the attitude levels of the experimental and control groups were equal. Post-test data showed no significant difference between the experimental and control groups. A positive increase was observed in the pre-test and post-test results of the experimental group. These results were interpreted in different contexts.