We study how the extreme temperature affects firm dynamics in Chinese manufacturing sector, including entry, exit, and (aggregate) productivity. While existing literature mostly focus the effects of the extreme temperature on incumbent firms (intensive margin), we contribute the literature by studying its effects on entry and exit (extensive margin), and how that is related to aggregate productivity. We corroborate the previous findings that the extreme high temperature lowers the productivity of the incumbent firms (productivity effects), while at the same time the extreme temperature leaves firms with higher productivity staying in the market (selection effect), and thus the combined effect on aggregate productivity is non-negative. We estimate a firm-dynamics model by indirect inference, and quantify the importance of different mechanisms. The implications of global warming are discussed.