Upon illumination or heating, silver chloride converts to silver (and chlorine), which is signalled by greyish or purplish coloration to some samples. This was the basis of photography for over 100 years until digital photography came in in the late 1990's.
2AgCl --> 2Ag + Cl2
2AgCl --> 2Ag + Cl2