Immigrants are frequently blamed for rising crime, yet we know little about whether exposure to violent crime attributed to immigrants actually shapes natives’ attitudes, or whether the crime–immigration link is driven primarily by perceptions and narratives that operate independently of local conditions. This paper contributes to the literature on immigration attitudes by distinguishing between objective exposure to immigrant-attributed organised crime, measured through municipal-level gun violence, and subjective perceptions of crime and insecurity. Using longitudinal data from the Swedish Citizen Panel linked to geocoded administrative records of municipal-level gun violence, I analyse within-individual changes in crime exposure, crime perceptions, and immigration attitudes between 2018 and 2025. The results show no evidence that exposure to gun violence is associated with anti-immigrant attitudes or heightens perceptions of crime. In contrast, subjective crime perceptions, both societal concern about crime and fear of personal victimisation are consistently associated with more exclusionary views toward immigrants. These relationships persist in models that account for individual and wave fixed effects, indicating that they reflect changes within individuals over time rather than stable differences between them. Together, the findings seem to suggest that subjective perceptions of crime and insecurity are more closely associated with immigration attitudes than changes in local contextual exposure to gun violence. The study therefore highlights the importance of subjective threat and interpretation in understanding the relationship between crime and immigration attitudes.