A study of the presence and diversity of bacteria in cultures of fungi isolated from plants of the Solanaceae family (potato and tomato) was carried out using PCR with bacterial primers, followed by sequencing of the amplicons. A total of 83 strains were tested and bacteria were found in most of them. Bacteria of the following taxa were found in fungi: Ceratobasidium sp. (Delftia sp.), Cladosporium cladosporioides (Paenibacillus sp.), Ilyonectria crassa (Enterobacter sp.), Fusarium avenaceum (Rahnella sp., Stenotrophomonas sp.), F. equiseti (Pseudomonas sp., Klebsiella sp., Pseudomonas sp., Pantoea sp., Stenotrophomonas sp.), F. graminearum (Stenotrophomonas sp.), F. merismoides (Luteolibacter sp.), F. merkxianum (Stenotrophomonas sp.), F. oxysporum (Kosakonia sp., Achromobacter sp., Stenotrophomonas sp., Pantoea sp., Delftia sp., Lelliottia sp., Pseudomonas sp.), F. torulosum (Flavobacterium sp.), Orbilia oligospora (Lacrimispora sp.), Plectosphaerella cucumerina (Pantoea sp.), Pyrenochaeta sp. (Herbaspirillum sp.), and Rhizoctonia solani (Achromobacter sp.). No correlation was found between specific bacterial and fungal species. The impact of the identified bacteria on plants can vary, from involvement in pathogenesis to stimulating of growth, and needs further study. Bacteria associated with fungi can be used in the production of biological products with protective and growth-regulating effects. Combining such bacteria with non-pathogenic fungi will increase their survival; the resulting fungal-bacterial associations can be used to create growth-stimulating biological products with a long shelf life. The possible presence of dangerous bacteria in plant pathogenic fungi should be considered when developing plant protection measures. © 2017 Pak. J. Phytopathol. All rights reserved.