An efficient one-pot synthesis of 1,6-diamino-2-oxo-1,2,3,4-tetrahydro- pyridine-3,5-dicarbonitrile derivatives by four-component piperidine-catalyzed reactions of a ketone, malononitrile, ethyl cyanoacetate and hydrazine hydrate under ultrasound irradiation is described. This method provides several advantages such as shorter reaction times, excellent yields, and a simple workup procedure.