This paper studies empirically the role of trade globalization in shifting the electoral base towards populism. We proxy the trade shock with swiftly rising import competition from China and compare voting patterns at the national parliamentary elections from 1992 to 2013 in about 8000 Italian municipalities differently exposed to the trade shock. We instrument import competition from China with Chinese export flows to other high-income countries and estimate the model in first differences. Our results indicate that trade globalization increases support for populist parties, as well as invalid votes and abstentionism. To rationalize these findings, we offer evidence that import competition worsens local labor market conditions – higher unemployment, lower income and durable consumption – and increases inequality. Finally, we point out that local public expenditure may play a role in mitigating the political consequences of the trade shock, arguably because it alleviates economic distress.