A novel nitrogen-containing compound, named xylactam (1), was isolated from the fruiting bodies of ascomycete Xylaria euglossa together with two known compounds penochalasin B2 and neoechinulin A. Their structures were elucidated on the basis of spectral data.