The reaction between a-diazocarboxylates and trialkylphosphites under thermal and photochemical conditions results into N–P and C–P bond formation, respectively. The diazo substrates act as electrophiles in the former case and as carbene precursors in the later case.