Pathogens embedded in biofilms are involved in many infections and are very difficult to treat with antibiotics because of higher resistance compared with planktonic cells. Therefore, new approaches for their control are urgently needed. One way to search for biofilm dispersing compounds is to look at defense strategies of organisms exposed to wet environments, which makes them prone to biofilm infections. It is reasonable to assume that mushrooms have developed mechanisms to control biofilms on their sporocarps (fruiting bodies). A preliminary screening for biofilms on sporocarps revealed several species with few or no bacteria on their sporocarps. From the edible mushroom Coprinus comatus where no bacteria on the sporocarp could be detected (3R,4S)-2-methylene-3,4-dihydroxypentanoic acid 1,4-lactone, named coprinuslactone, was isolated. Coprinuslactone interfered with quorum-sensing and dispersed biofilms of Pseudomonas aeruginosa, where it also reduced the formation of the pathogenicity factors pyocyanin and rhamnolipid B. Coprinuslactone also damaged Staphylococcus aureus cells in biofilms at subtoxic concentrations. Furthermore, it inhibited UDP-N-acetylglucosamine enolpyruvyl transferase (MurA), essential for bacterial cell wall synthesis. These two modes of action ensure the inhibition of a broad spectrum of pathogens on the fruiting body but may also be useful for future clinical applications.