Reaction of diazo(trimethylsilyl)methylmagnesium bromide with aldehydes or ketones gave 2-diazo-2-(trimethylsilyl)ethanols, which were applied to the synthesis of di- and trisubstituted pyrazoles via [3+2] cycloaddition reaction with ethyl propiolate or dimethyl acetylenedicarboxylate.