Key messageThe size of the structural components of the root–pit–mound complex was crucial for high moss species richness. Root plates, pits, and mounds were similar in terms of moss species composition, which was mostly determined by forest type.ContextUprooted trees may be colonized by different terricolous mosses including common species and specialists.AimsThe main aim of the present study was to analyze the relative effects of tree uprooting on mosses.MethodsWe used the parametric ZIGLMM and GLMM models to explain the richness and abundance of the moss species and double constrained correspondence analysis (dc-CA) to analyze species composition.ResultsThe size of components of RPM complexes had a positive effect on moss species richness. The species cover of mosses was positively correlated with elevation. Species richness was partly dependent on forest type and species cover on component type and age of the RPM complex. The most important factor diversifying species composition was the type of forest. Species traits were also related to forest communities.ConclusionUprooted trees are worth keeping in forest community, especially large ones. Moreover, the conservation value of uprooted trees in woodlands is higher if they are dispersed in different forest types.