We study how two of the world’s largest gangs—MS-13 and 18th Street—affect economic development in El Salvador. We exploit the fact that the emergence of these gangs was the consequence of an exogenous shift in American immigration policy that led to the deportation of gang leaders from the United States to El Salvador. Using a spatial regression discontinuity design, we find that individuals living under gang control have significantly less education, material wellbeing, and income than individuals living only 50 meters away but outside of gang territory. None of these discontinuities existed before the emergence of the gangs. The results are confirmed by a difference-in-differences analysis: after the gangs’ arrival, locations under their control started experiencing lower growth in nighttime light density compared to areas without gang presence. A key mechanism behind the results is that, in order to maintain territorial control, gangs restrict individuals’ freedom of movement, affecting their labor market options. The results are not determined by exposure to violence or selective migration from gang locations. We also find no differences in public goods provision.