We quantify how pollution affects aggregate productivity and welfare in spatial equilibrium. We document a robust pattern in which skilled workers in China emigrate away from polluted cities, more than the unskilled. These patterns are evident under various empirical specifications, such as when instrumenting for pollution using distant upwind power-plants, or thermal inversions that trap pollutants. Pollution changes the spatial distribution of skilled and unskilled workers, which increases returns-toskill in cities that the educated emigrate from. We quantify the loss in aggregate productivity due to this re-sorting by estimating a spatial equilibrium model. Counterfactual simulations show that reducing pollution increases productivity through spatial re-sorting by approximately as much as the direct health benefits of clean air. We identify a new channel through which pollution lowers aggregate productivity significantly. Hukou mobility restrictions exacerbate welfare losses. Skilled workers’aversion to pollution explains a substantial portion of the wage-gap between cities.