A nucleophilic substitution is a chemical reaction. It is a type of substitution, or replacing, reaction. It happens when one nucleophile replaces another one on an atom. The other group leaves the atom and is called a leaving group.