Cadinane- and drimane-type sesquiterpenoids produced by Paecilomyces sp. TE-540, an endophyte from Nicotiana tabacum L., are acetylcholinesterase inhibitors.