Drainage ditches play a key role in the conservation of fragmented landscapes by providing refuge sites and secondary habitats for many terrestrial and aquatic organisms across various taxa. Species richness of ditches can exceed that of adjacent natural habitats, but here, we looked further and assessed the role of drainage ditches in shaping the community structure of true bugs aiming to better estimate ditches’ conservation value from the point of their species and trait composition. We tested the effects of the ditch substrate (saline, sandy or fen), landscape matrix (agrarian or grassland) and vegetation (species richness of all plants and invasive plants, and abundance of woody plants) on the true bug communities of 60 drainage ditches in the lowland of East-Central Europe. We found that substrate and landscape matrix contributed the most in determining true bug communities. Based on species composition, different substrates and landscape matrix types had distinct communities, but the trait composition showed differentiation according to the landscape matrix in saline habitats only. The trait composition in true bug communities was more diverse in grassland ditches than in agrarian ones, which hosted more habitat generalists associated with invasive vegetation. We concluded that a pronounced gradient in habitat stress, originating in substrate salinity and aridity, causes the differentiation of the true bug communities based on their trait composition. Additionally, intense habitat stress increases the number of habitat specialists and the conservation value of a drainage ditch.