The one-pot reaction of various diamines with cysteamine hydrochloride or 1,1-bis(methylthio)-2-nitroethene, aromatic aldehydes, and Meldrum's acid led to pyridone compounds in good yields. The reaction conditions were optimized using response surface method.