Diazomethane is used in the Arndt-Eistert Synthesis. This is a method of converting an acid ( aliphatic ,aromatic, alicyclic or heterocyclic) into the next higher homologue.
`R-overset(O)overset(||)C-Ohoverset(SOCl_(2))toR-overset(O)overset(||)C-Clunderset((-HCl))overset(CH_(2)N_(2))tounderset("Diazoketone")(R-overset(O)overset(||)C-CHN_(2))underset(Delta)overset(Ag_(2)O)tounderset("Ketene")(R-CH=C=O+N_(2))`
This rearrangement of diazoketone is called Wolff rearrangement.