Unveiling the relationships between crime and socioeconomic factors is crucial for modeling and preventing these illegal activities. Recently, a significant advance has been made in understanding the influence of urban metrics on the levels of crime in different urban systems. In this chapter, we show how the dynamics of crime growth rate and the number of crime in cities are related to cities size. We also discuss the role of urban metrics in crime modeling within the framework of the urban scaling hypothesis, where a data-driven approach is proposed for modeling crime. This model provides several insights into the mechanism ruling the dynamics of crime and can assist policymakers in making better decisions on resource allocation and help crime prevention.