Photochemical smog forms when sunlight (UV radiation) reacts with nitrogen oxides and volatile organic compounds in the atmosphere. All three components are essential - sunlight provides the energy, nitrogen oxides primarily come from vehicle exhaust, and VOCs come from various industrial and natural sources. The reaction creates harmful secondary pollutants like ozone and peroxyacyl nitrates.