[O:1]=[C:2]1[CH2:7][CH2:6][N:5]([C:8]([O:10][CH2:11][CH3:12])=[O:9])[CH2:4][CH2:3]1.[N+:13]([CH3:16])([O-:15])=[O:14].C[O-].[Na+]>CO>[OH:1][C:2]1([CH2:16][N+:13]([O-:15])=[O:14])[CH2:3][CH2:4][N:5]([C:8]([O:10][CH2:11][CH3:12])=[O:9])[CH2:6][CH2:7]1To a stirred and cooled mixture of ethyl 4-oxo-1-piperidinecarboxylate (85.5 g), nitromethane (33.6 g) in methanol (240 ml), sodium methoxide (10 g) is added dropwise. Upon completion, stirring is continued for 2 hours at about 10° C. and further overnight at room temperature. The reaction mixture is evaporated at room temperature, crushed ice is added to the oily residue and the whole is acidified with acetic acid. The product is extracted with trichloromethane, the extract is dried, filtered and evaporated. The oily residue solidifies on triturating in petroleumether. The product is filtered off and dried, yielding 73 g of ethyl 4-hydroxy-4-(nitromethyl)-1-piperidinecarboxylate (interm. 5).