A reaction in which a reagent replaces an atom or a group of atoms from the reactant is known as substitution reaction.
Eg: In the presence of sunlight, chlorine is added to hydrocarbons at a rapid rate, here chlorine replaces hydrogen atom one by one.