The present disclosure relates to a process for the halogenation of hydrocarbon. In accordance with the process of the present disclosure a hydrocarbon and a halogen is introduced in a reaction vessel. Light having wavelength in the range of 390 to 780nm is then passed into the reaction vessel for a time period of 2 to 12 hrs. to obtain a halogenated hydrocarbon. The hydrocarbon is agitated before or after the introduction of the halogen in to the reaction vessel.