# Reactions in the presence of sunlight

Some reactions in my textbook specify the need for the presence of sunlight, eg-photolytic decomposition of silver bromide and substitution reaction of methane with chlorine.

What is going on in these reactions? is there something special in light or can these reactions take place if provided with another source of energy like heat?

Also, can thermal reactions(reactions requiring heat) be done in the presence of sunlight?

I expect the radical bromination of some huge branched alkane to be a particularly bad case. Put it under sunlight, and it will go smoothly; heat it, and you'll have all sorts of side reactions, fragmentations, isomerizations going on at once. Of your examples, decomposition of silver bromide is relatively "well-behaved" (after all, $\ce{AgBr}$ must decompose since it doesn't have many other things to do), and $\ce{CH4 + Cl2}$ is somewhere in between.