The synthesis of (+)-fagomine, based on the Pd-catalyzed methoxycarbonylation reaction of a lactam-derived vinylphosphate and the stereoselective hydroboration-oxidation of the enamine double bond, is presented. The target product is obtained in 23% overall yield in eight steps from a known lactam.