Smog is essentially caused by the presence of:
Oxygen and nitrogen
Smog is caused when oxygen combines with nitrogen oxides from internal combustion engines or power plants in the presence of sunlight. Smog is fog or haze intensified by smoke or other atmospheric pollutants.