An effective modification of phosphotriester method for automatic synthesis of DNA and RNA fragments using O-nucleophilic intramolecular catalysis and 2-(azidometil)benzoyl group to protect amino groups of heterocyclic bases of nucleotides is described.