In this paper, I examine the relationship between community-level exposure to war losses and long-term patterns of electoral behaviour. Using novel data that identifies and geolocates all French soldiers who died during World War I, I show that communities that experienced higher death rates exhibit greater levels of electoral support for the far-right. Subsequently, I provide both theoretical and empirical evidence on how such persistent effects propagate: communities more exposed to the horrors of war develop stronger in-group preferences at the expense of the out-group. In cases like France, where the in-group is defined primarily in terms of the nation, this preference translates into a higher demand for nationalism, which is supplied by far-right political parties.