Mahafacyclin B is a cyclic heptapeptide with antimalarial activity isolated from the latex of Jatropha mahafalensis. The structure is elucidated by chemical degradation, tandem mass spectrometry, homo- and heteronuclear NMR experiments, and confirmed by synthesis.