A rapid, efficient, and ecofriendly protocol has been developed for the Knoevenagel condensation of active methylene compounds such as malononitrile or ethyl cyanoacetate with aldehydes in the presence of melamine with good to excellent yields at room temperature without solvent.