Transcriptomic and phenotypic studies showed that pyocins are produced in Pseudomonas aeruginosa PAO1 aerobic and anaerobic biofilms. Pyocin activity was found to be high in slow-growing anaerobic biofilms but transient in aerobic biofilms. Biofilm coculture of strain PAO1 and a pyocin-sensitive isolate showed that pyocin production had a significant impact on bacterial population dynamics, particularly under anaerobic conditions.