When methane reacts with chlorine in presence of sunlight, it undergoes chlorination to form methyl chloride.
CH4+Cl2hv−→CH3Cl+HCl
This reaction go on further to produce polyhalogen derivative of alkane until all the hydrogen atom on methane is replaced by the corresponding number of the chlorine atom.