Nitrile (II) was prepared by regioselective diazotization of triaminoquinazoline (I), followed by treatment with KCN and CuSO4. Conversion of nitrile (II) into aldehyde (III) was achieved by means of Ni-Al alloy in refluxing formic acid. Subsequent reduction of aldehyde (III) with NaBH4 gave alcohol (IV), which was further brominated to (V) using HBr in HOAc. Finally, displacement of the bromide of (V) with 3,4,5-trimethoxybenzoic acid (VI) provided the target trimethoxybenzoate ester.