Fungi produce a diverse array of secondary metabolites that have a range of functions and great pharmacological potential. In this Review, Axel Brakhage describes the regulatory pathways governing the production of these secondary metabolites and discusses how this knowledge provides a new avenue for drug discovery.