[Structure: see text] The morphinan skeleton was effectively synthesized by an intramolecular Mannich-type reaction. Further transformation led to total synthesis of morphine.