A tropane alkaloid, anhydroecgonine methyl ester N-oxide (2), was isolated for the first time as a naturally occurring compound, with anhydroecgonine methyl ester (1) from the bark of Erythroxylum emarginatum. Compound 1 was also isolated from the twigs. Their structures were elucidated mainly by spectroscopic methods. © The Japanese Society of Pharmacognosy and Springer-Verlag 2006.