Crime in Indonesia includes acts that violate the law, social norms and religion which cause economic and psychological losses as well as social tensions in society. Crimes such as theft, violence, fraud and drugs are often triggered by factors such as poverty and environmental conditions that support criminal behavior. This research needs to be carried out to overcome the complex and far-reaching crime problem in Indonesia, especially in Karawang Regency. With crimes such as theft, violence, fraud and drugs on the rise, often fueled by factors such as poverty and environmental conditions, a more effective approach is needed to understand and address these problems. This research uses data mining techniques, especially cluster analysis, to group types of crime. The aim is to identify existing crime patterns and understand the factors that influence their spread. Thus, the results of this research can help the authorities in developing more targeted crime prevention and handling strategies, so as to minimize the negative impact of crime in the area. Apart from that, this research also contributes to increasing knowledge regarding the most effective methods for analyzing crime data, which can be applied in other areas with similar problems. The results of the research show that the K-Means algorithm is more effective than K-Medoids in handling data variability, with a Silhouette Coefficient value of 0.482 and a Davies Bouldin Index of 0.915. It is hoped that the implementation of this algorithm will make it easier to identify and handle crimes in the area.