A facile access to 2,3,6-trisubstituted2H-pyran-5-carboxylates is developed by employing 2-alkyl-2-enals as reactants with acetoacetates. The reaction involves Knoevenagel condensation followed by a 6π-electrocyclization, in which the presence of the C2 alkyl substituent in the enals favors the formation of (E)-Knoevenagel adducts for the ensuing electrocyclization. The resulting 2H-pyrans are hydrogenated