The gases hydrogen and chlorine do not react with each other even if kept together for a long time. However, in the presence of sunlight, they readily combine. What actually happens?
In chemical reactions, energy is needed to break the bonds present in the reacting molecules so that they may combine to form the products. In this reaction, sunlight is the source of energy in the form of photons. The energy made available by sunlight helps in breaking the bonds and this leads to chemical reaction between hydrogen and chlorine.