A reaction in which a fragment of one reactant is replaced by another reactant or by a fragent of another reactant.