2-Methoxy-1,3-butadiene and ethyl-2-butynoate undergo a Diels-Alder reaction to generate a precursor which is hydrolyzed to obtain Hagemanns ester. By varying the substituents on the butynoate starting material, this approach allows for different C2 alkylated Hagemanns ester derivatives to be synthesized.