A novel ruthenium-catalyzed cyclization of ketoxime carboxylates with N,N-dimethylformamide (DMF) for the synthesis of tetrasubstituted symmetrical pyridines has been developed. A methyl carbon on DMF performed as a source of a one carbon synthon. And NaHSO3 plays a role in the reaction.