This research aims to increase efficiency in monitoring student attendance at Madrasah I'dadiyah Salafiyah Syafi'iyah by utilizing the K-Means Clustering analysis method. Monitoring student attendance is still carried out conventionally, so it often takes time and is less effective in identifying overall student attendance patterns. For this reason, in this research, student attendance data collected from the madrasa attendance system was analyzed using K-Means Clustering, a machine learning technique that can group students based on their attendance patterns. This process produces several groups which make it easier for the madrasah to identify students who frequently attend, rarely attend, or frequently do not attend. In this way, madrasas can take more appropriate steps in dealing with attendance problems, such as paying special attention to students who are often absent. The results of this research indicate that the application of K-Means Clustering can increase the efficiency of attendance monitoring and provide a stronger basis for decision making to improve the attendance system at the I'dadiyah Salafiyah Syafi'iyah madrasah.