Hagemann's ester, ethyl 2-methyl-4-oxo-2-cyclohexenecarboxylate, is an organic compound that was first prepared and described in 1893 by German chemist Carl Hagemann. The compound is used in organic chemistry as a reagent in the synthesis of many natural products including sterols, trisporic acids, and terpenoids.