Traffic accidents are a serious issue in Pekanbaru City, affecting public safety and well-being. This study aims to classify the causes of traffic accidents using the K- Means Clustering algorithm based on accident data from Riau Regional Police (POLDA Riau) for the period 2021–2023. The clustering process uses Euclidean distance to measure the closeness of data points to each cluster’s cen…