text: Diazo compounds are used as precursors to carbenes, which are generated by thermolysis or photolysis, for example in the Wolff rearrangement. As such they are used in cyclopropanation for example in the reaction of ethyl diazoacetate with styrene. Certain diazo compounds can couple to form alkenes in a formal carbene dimerization reaction.
  Diazo compounds are intermediates in the Bamford-Stevens reaction of tosylhydrazones to alkenes, again with a carbene intermediate:
  In the Doyle-Kirmse reaction certain diazo compounds react with allyl sulfides to the homoallyl sulfide. Intramolecular reactions of diazocarbonyl compounds provide access to cyclopropanes. In the Buchner ring expansion diazo compounds react with aromatic rings with ring-expansion.