A facile access to 2,3,6-trisubstituted 2H-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