The alkylation on the pyrimidine ring of 3-methyl-3H-[1,2,3]triazolo]4,5-d]pyrimidine-5,7(4H,6H)-diones (1) with an equimolecular amount of alkylating agent in the presence of anhydrous potassium carbonate in aprotic solvents under heating took place only at the 4-position. The similar alkylation on the triazole ring of 6-methyl-1H-[1,2,3]triazolo[4,5-d]pyrimidine-5,7(4H,6H)-diones (4) with an equivalent alkylating reagent happened simultaneously at the 1- and 2-positions with the priority at the 2-position. On the other hand, the alkylation of 3,6-disubstituted derivatives (12a-d) at room temperature led to the 5-0-alkylation (14a-e) accompanied with the 4-N-alkylation (3a, 13a-d), but at high temperature only the 4-N-alkylation occurred. The 3,4,6-tri-substituted derivatives (3a, 13d) underwent transformation with excess alkylating agents at high temperature leading to the formation of 1,4,6-trisubstituted derivatives (7, 15) with elimination of the 3-substituent in the same manner as xanthine.