Answer
When silver chloride is exposed to light, it decomposes to form silver metal and chlorine gas which is a photolytic decomposition reaction,decomposition carried out by sunlight.
2AgCl(s) → 2Ag(s) + Cl2
This reaction is used in black and white photography.