[CH3:1][O:2][C:3](=[O:11])[C:4](=[CH:9][OH:10])[C:5]([O:7][CH3:8])=[O:6].CO.Cl.[C:15](#N)C>>[CH3:8][O:7][C:5](=[O:6])[C:4](=[CH:9][O:10][CH3:15])[C:3]([O:2][CH3:1])=[O:11]160 g (1.0 mol) of hydroxymethylenemalonic acid dimethyl ester is dissolved in 288 g (9.0 mol) of methanol and 50 g of hydrogen chloride gas is introduced. Then 55.2 g (1.35 mol) of acetonitrile is added and the mixture is let stand for 24 hours at room temperature. Then the low-boiling substances are distilled out, dichloromethane is added to the residue, and ammonium chloride is filtered out. The filtrate is treated with 1.6 g of potassium bisulfate and heated while distilling the volatile components up to 130° C. 138 g (0.79 mol) of methoxymethylenmalonic acid dimethyl ester is obtained, corresponding to 79.3% of the theory.