It's the coal burning industry. Coal is cheap and plentiful in China. This coupled with the geography results in the smog not being able to be cleared.
Look at all the polluted cities, the majority are east of the Taihang mountains. Beijing itself is surrounded by mountains, so it becomes a trap for the pollution.