Keywords: Cyanopurines / Amines / Rearrangement / Pyrimido [5,4-d]pyrimidines 7,pyrimidines 4 were isolated in very good yields by treatment of 9-aryl-6-cyanopurines 1 with primary amines. Nucleophilic attack of the amine on C8 of the purine ring was followed by ring-opening of the imidazole unit, and subsequent intramolecular cyclization involving the newly formed amidine group and the cyano substituent in the pyrimidine ring produced the 7,8-dihydropyrimido[5,4-d]pyrimidine structure 4. When ammonia was used instead of primary amines, compound 4 rapidly reacted further to afford the more stable pyrimido [5,4-d]pyrimidine 6 as