Under argon protection, appropriate amounts of lithium aluminum hydride (2 mol) and dry tetrahydrofuran were added to a dry reaction flask. The reaction system was then cooled to zero degrees Celsius, followed by the addition of the precursor compound ester (1 mol). After the addition was complete, the reaction system was heated to 40-50 degrees Celsius and stirred for 2 hours, then stirred overnight at room temperature. After the reaction was complete, the reaction was quenched by adding H₂O, and a cooling NaOH aqueous solution was added as needed. The solution was then filtered, the solid was washed with dry tetrahydrofuran, the filtrate was dried with anhydrous sodium sulfate, and the sodium sulfate solid was removed by filtration. The filtrate was concentrated under vacuum to obtain the target product, 1-Methyl-3-piperidinemethanol.