Pathogenic microbes employ a variety of methods to overcome host defenses, including the production and dispersal of molecules that are toxic to their hosts. Pseudomonas aeruginosa, a Gram-negative bacterium, is a pathogen of a diverse variety of hosts including mammals and the nematode Caenorhabditis elegans. In this study, we identify three small molecules in the phenazine class that are produced by P. aeruginosa strain PA14 that are toxic to C. elegans. We demonstrate that 1-hydroxyphenazine, phenazine-1-carboxylic acid, and pyocyanin are capable of killing nematodes in a matter of hours. 1-hydroxyphenazine is toxic over a wide pH range, whereas the toxicities of phenazine-1-carboxylic acid and pyocyanin are pH-dependent at non-overlapping pH ranges. We found that acidification of the growth medium by PA14 activates the toxicity of phenazine-1-carboxylic acid, which is the primary toxic agent towards C. elegans in our assay. Pyocyanin is not toxic under acidic conditions and 1-hydroxyphenazine is produced at concentrations too low to kill C. elegans. These results suggest a role for phenazine-1-carboxylic acid in mammalian pathogenesis because PA14 mutants deficient in phenazine production have been shown to be defective in pathogenesis in mice. More generally, these data demonstrate how diversity within a class of metabolites could affect bacterial toxicity in different environmental niches.