Cereulide is a toxin produced by some strains of Bacillus cereus, Bacillus megaterium and related species. It is a potent cytotoxin that destroys mitochondria. It also causes nausea and vomiting.
 Cereulide acts as ionophore with a high affinity to potassium cations. Exposure to cereulide causes loss of the membrane potential and uncoupling of oxidative phosphorylation in the mitochondria. The nausea and vomiting is believed to be caused by cereulide's binding and activation of 5-HT3 receptors, leading to increased afferent vagus nerve stimulation.
 Cereulide is a cyclic dodecadepsipeptide resembling valinomycin; it contains three repeats of four amino acids: D-Oxy-Leu—D-Ala—L-Oxy-Val—L-Val. It is produced by a dedicated non-ribosomal peptide synthesis (NRPS) system in B. cereus.
 The spores of cereulide-producing strains of B. cereus and related species are manyfold more heat resistant than spores of cereulide non-producers. The toxin has no loss of activity upon autoclaving, cooking, or baking.
 In Bacillus cereus, cereulide biosynthesis occurs by the non-ribosomal peptide synthetase of the heterodimer proteins CesA and CesB.  In non-ribosomal peptide synthetase, individual amino acids are added, modified, and linked.  Addition is facilitated by the adenylation (A) domain.  Modification is accomplished by the ketoreductase (KR) and epimerization (E) domains. Finally, the growing peptides are linked by condensation domains.  The transportation between domains is facilitated by a peptide carrier protein or thiolation (T) domain, which houses the growing peptide chain.  Additionally, a thioesterase (TE) domain is used by the final module to cleave and cyclize the final peptide product.
 The peptides produced from both CesA and CesB are linked with an ester rather than amide bond; given the cyclic structure of cereulide, this cyclic ester (or lactone) linkage makes cereulide a depsipeptide.
 CesA is a 387 kDa heterodimer protein composed of CesA1 and CesA2 modules.  CesA1 adds ketoisocaproic acid to the adenylation domain.  The thiolation domain will then move the ketoisocaproic acid along the ketoreductase domain, which reduces ketoisocaproic acid into D-α-hydroxyisocaproic acid with the cofactor NADPH.  In module CesA2, L-alanine is added to the adenylation domain.  The condensation domain will facilitate a nucleophilic attack by the free amine on L-alanine onto the thioester of D-α-hydroxyisocaproic acid (D-HIC) on the CesA1 module.  This event links the peptides and situates the growing peptide molecule on the thiolation domain of CesA2.  Next, an epimerization domain changes the stereochemistry of L-alanine (L-Ala) into D-alanine (D-Ala).
 CesB is a 305 kDa heterodimer protein composed of CesB1 and CesB2 modules.  CesB1 behaves almost identically to CesA1, where ketoisocaproic acid was added and reduced; however, the substrate α-ketoisovaleric acid is reduced to L- α-hydroxyisovaleric acid (L-HIV).  Additionally, a condensation domain at the end of CesA (beyond CesA2) facilitates the ester formation between L-HIV and the D-HIC-D-Ala peptide.
 Next, CesB2 adds L-valine (L-Val) to the adenylation domain, and the condensation domain facilitates the nucleophilic attack of the amine on L-Val onto the D-HIC-D-Ala-L-HIV thioester, which creates a D-HIC-D-Ala-L-HIV-L-Val tetrapeptide on the thiolation domain of CesB2.  Finally, the final thioesterase domain combines three units of the aforementioned tetrapeptide between the α-hydroxyl group of D-HIC and the thioester of a L-Val of another tetrapeptide.  Ultimately, three esters are formed during this cyclization of 3 tetrapeptides.  The resulting cyclic depsipeptide, which contains alternating units of esters and amides, is cereulide.