Like ozone, nitrogen dioxide can be formed by photochemical action and so is present in photochemical smog. The gas when inhaled can form nitrous and nitric acids which attack the mucous inner lining of the lungs.