An efficient and simple synthesis of some 2-amino-3-cyano-4H-pyran derivatives was developed by the one-pot and three-component reaction of aldehydes, ethyl acetoacetate, and malononitrile in the presence of ammonia as catalyst at room temperature. The reaction is rapid and clean, and gives the products in high yields.