The nitration of methyl 2-methoxy-4-aminobenzoate (I) with nitric acid in acetic acid-acetic anhydride, followed by hydrolysis with methanolic H2SO4 gives methyl 2-methoxy-4-amino-5-nitrobenzoate (II), which is reduced with H2 over Raney-Ni in methanol to yield methyl-2-methoxy-4,5-diaminohenzoate (III). The cyclization of (III) with NaNO2 in aqueous HCl affords methyl 6-methoxybenzotriazole-5-carboxylate (IV), which is finally condensed with 1-allylpyrrolidin-2-ylmethylamine (V) in refluxing toluene.