text: Dialkyl peroxides, e.g., dicumyl peroxide, are synthesized by addition of hydrogen peroxide to alkenes or by O-alkylation of hydroperoxides.
  Diacyl peroxides are typically prepared by treating hydrogen peroxide with acid chlorides or acid anhydrides in the presence of base:
  The reaction competes with hydrolysis of the acylating agent but the hydroperoxide anion is a superior nucleophile relative to hydroxide.  Unsymmetrical diacyl peroxides can be produced by treating acyl chlorides with the peroxy acid.
  Peresters, an example being tert-Butyl peroxybenzoate, are produced by treating acid anhydrides or acid chlorides with hydroperoxides.