The paper indicates the phytocenoses most rich in bee taxons and occurring in habitats located along railway lines crossing Lublin Upland. To date, in the study area 124 basic phytocoenoses have been discovered, described and classifi ed into 12 different synecological groups. Among 52 phytocoenoses, the participation of bee flora was considerable. Most voluble phytocoenoses represent ruderal and segetal associations (<i>Artemisietea vulgaris</i>, <i>Stellarietea mediae</i> classes - 87 species), meadow and pasture associations (<i>Mollinio-Arrhenatheretea</i> - 56 species), psammophilous and xerothermic grasslands (<i>Festuco</i>- <i>Brometea</i>, <i>Koelerio glauce</i>-<i>Corynophoretea canescensis</i> - 38 species), thermophilous forest edge communities and thickets (<i>Trifolio</i>-<i>Geranietea</i> and <i>Rhamno</i>-<i>Prunetea</i> - 33 species). Significantly fewer melliferous and polleniferous taxons were noticed in mesophilous deciduous forests or thermophilous oak forests - 29 species. Most simple in structure and species richness are associations with <i>Rumex acetosa</i>, <i>Reseda lutea</i>, <i>Linaria vulgaris</i>, <i>Papaver rhoeas</i>, <i>Cirsium arvense</i>, <i>Oenothera biennis</i>, <i>Viola arvensis</i> and <i>Potentilletum anserine</i> or <i>Sisymbrietum altissimi</i>. The communities form patches (15-20 m<sup>2</sup>) with 80-100% cover of the diagnostic taxon and are of low or medium stability. The most persistent and floristically stable are <i>Tanaceto Artemisietum</i>, <i>Rudbeckio</i>- <i>Solidaginetum</i>, <i>Echio</i>-<i>Melilotetum</i>, <i>Sambucetum nigrae</i>, <i>Rubo fruticosi</i>-<i>Prunetum spinosae</i> and communities with <i>Rosa rugosa</i>, <i>Rubus caesius</i>, <i>Geranium robertianum</i>, <i>Pastinaca sativa</i>, <i>Trifolium medium</i> or <i>Euphorbia cyparissias</i>. The maintenance of the mosaic of phytocoenoses in anthropogenically transformed habitats, including those along railway lines, is of decisive importance for the protection of floristic diversity and adaptation processes of Apoidea.