Literature has focused attention on identifying whether crime and violence impact growth via changes in economic factor accumulation, i.e. reducing labor supply or increasing capital costs. Yet, much little is known as to how crime and violence may affect how economic factors are allocated. Using a unique dataset created with a text-analysis algorithm of web content, this paper traces a decade of economic activity at the subnational level to show that increases in criminal presence and violent crime reduce economic diversification, increase sector concentration, and diminish economic complexity. An increase of 9.8% in the number of criminal organizations is enough to eliminate one economic sector. Similar effects can be felt if homicides rates increase by more than 22.5%, or if gang-related violence increases by 5.4%. By addressing the impact that crime has on the diversification of production factors, this paper takes current literature one step forward: It goes from exploring the effects of crime in the demand/supply of production factors, to analyzing its effects on economic composition.