Substitution reactions are chemical reactions where one functional group in a molecule is replaced by another functional group. These reactions are fundamental in organic chemistry and often involve the exchange of atoms or groups between different molecules, which can lead to the formation of complex ions and influence their stability constants.