A convenient one-pot procedure for the preparation of pyrazoles by 1,3-dipolar cycloaddition of diazo compounds generated in situ has been developed. Diazo compounds derived from aldehydes were reacted with terminal alkynes to furnish regioselectively 3,5-disubstituted pyrazoles. Furthermore, the reaction of N-vinylimidazole and diazo compounds derived from aldehydes gave exclusively 3-substituted pyrazoles in a one-pot process.