A one-pot three-component reaction of aldehydes, nitroalkanes and NaN3 for the synthesis of NH-1,2,3-triazoles has been developed. The reaction provides a safe, efficient and step-economic approach for the synthesis of various NH-1,2,3-triazoles in good to excellent yields.