C[O-:2].[Mg+2].C[O-].C[C:7]1[O:14][C:12](=O)[CH:11]([C:15]([CH3:17])=[O:16])[C:9](=[O:10])[CH:8]=1>CO>[O:10]=[C:9]([CH2:11][C:15](=[O:16])[CH3:17])[CH2:8][C:7]([O:14][CH3:12])=[O:2]Magnesium methoxide (6% in MeOH, 530 mL) was added to a suspension of dehydroacetic acid (31 g) in methanol (600 mL) at room temperature. The reaction mixture was refluxed and stirred for 5 h. The solvent was removed and the residue dissolved in HCl 1M (1.5 L). The aqueous phase was extracted with EtOAc (2×750 mL) and then the solvent was evaporated under reduced pressure to give a yellow oil, which was filtered on a silica cartridge using dichloromethane as eluent. After the solvent removal, methyl 3,5-dioxohexanoate was obtained as a light yellow oil (19.9 g).