[formula: see text] This report describes a new method to prepare optically active methylphenidate starting from piperidine. The method consists of a transformation of N-methoxycarbonylpiperidine to the corresponding alpha-methoxylated carbamate I by utilizing electrochemical oxidation followed by the coupling reaction with optically active Evans imides II to produce optically active methylphenidate derivatives III with high stereoselectivities, threo-(2R,2'R)-Methylphenidate (IV; Ar = Ph; Ritalin) was easily prepared from III in three steps.