A new method for the construction of pyridine and pyrimidine derivatives is described, based on the electrophilic attack of nitriles to dianions of & (monoalkylamino)-a, &wturated ketones and the subsequent cyclization of the addition product. The reaction proceeds in good to high yields with both a'-and y-dianions which are regioselectively generated. The reaction of y-dianions with nitriles is strongly influenced by temperature. The y-addition produds ...