substitution reaction

chemical reaction during which one functional group in a chemical compound is replaced by another functional group