6-Amino-3-methyl-4-(4-pyridinyl)-1,4-dihydropyrano[2,3-c]pyrazole-5-carbonitrile can be prepared via four-component reaction of ethyl acetoacetate, malononitrile, hydrazine and aryl aldehydes. It showed some potential antifungal and anticancer activity.