Facile synthesis of 6-cyano-9-substituted-9H-purines and their ring expansion to 8-(arylamino)-4-imino-3-methylpyrimidino[5,4-d]pyrimidines.