Nutrients become depleted so toxic metabolites are produced. Secondary metabolites such as antibiotics are produced. In the wild, secondary metabolites confer an ecological advantage by allowing microorganisms which produce them to out-compete the microorganisms.