The reaction in which one functional group is replaced with another functional group is called:
Substitution reaction
Substitution reaction is a chemical reaction during which one functional group in a chemical compound is replaced by another functional group.