Construction and screening of a 2-aminoimidazole library identifies a small molecule capable of inhibiting and dispersing bacterial biofilms across order, class, and phylum.