In the temperate zone of Europe, Scots pine forests are expected to occupy the poorest habitats which are unfavourable for deciduous trees. However, as a result of deforestation of the most fertile habitats and the preference for Pinus sylvestris in silviculture, pine forests have become the dominant feature of the landscape in Central Europe. As a result, the area of optimal habitat for deciduous forest flora has been significantly reduced. Nevertheless, remnant patches of deciduous forest persist as habitat islands within extensive pine forest complexes and may serve as important refugia for meso- and eutrophilic forest species. However, the factors that contribute to the variation in species composition of such habitat islands and their role in maintaining biodiversity remain poorly understood. This paper aims to fill this knowledge gap.The studied deciduous (oak) stands exhibited a diverse vegetation, with species composition influenced by overstorey attributes, oak age, patch location, and the area and circularity of the deciduous forest. Species traits related to environmental variables included mainly preferences for closed or open forests, requirements for soil moisture, reaction, and fertility, and requirements for light conditions. The key message from our research is that oak islands are not simply patches of trees that are different from the surrounding area. Instead, they represent distinct plant communities that have developed to adapt to the prevailing environmental conditions by recruiting species with particular traits. The presence of oak islands within Scots pine monocultures is therefore important for increasing the diversity of the forest complex.The most relevant recommendation from our research for forest management is to maintain as many patches of deciduous tree stands as possible within a single pine forest complex, as even small habitat islands can make a significant contribution to the biodiversity of the forest complex.