The first total synthesis of magnolamide, a new alkaloid from Magnolia coco, has been achieved using the titanium (IV) isopropoxide-mediated Paal-Knorr synthesis of the core pyrrole system.