Fungi exposed to environmental stress (such as antifungal compounds) activate abnormal gene expression that leads to increased mycotoxin production; this is not primarily a defense mechanism but rather related to predation—fungi produce compounds like aflatoxins to eliminate plant defenses so they can consume plant tissue.