Forest composition and structural diversity play a key role in shaping habitat availability and biodiversity, particularly influencing the occurrence of saproxylic species associated with tree-related microhabitats (TreMs). TreMs and deadwood are essential features of forest ecosystems, offering critical habitats for saproxylic arthropods that contribute to decomposition, nutrient cycling, and overall forest resilience. Understanding the complex interactions between forest structures, TreMs, and arthropod communities is crucial for biodiversity conservation and sustainable forest management. This study explores how forest composition, deadwood, and TreMs together influence arthropod diversity and community composition in temperate forests, using a large-scale eDNA metabarcoding approach. We assessed arthropod communities across 135 forest plots in the Black Forest, Germany with varying degrees of retention. Our findings reveal that specific TreMs, such as cavities, mosses, and insect galleries, significantly contribute to arthropod richness, particularly for Collembola, Coleoptera, and Arachnida. Canopy closure, deadwood volume, and snag availability emerged as key determinants of community composition, while low degrees of retention negatively impacted terrestrial arthropods biodiversity by reducing habitat complexity. These findings reveal that species richness and community composition are driven by different ecological factors, highlighting the complexity of forest ecosystems. They underscore the need for forest management strategies that preserve deadwood and TreMs, enhance structural heterogeneity, and consider broader indicators of forest naturalness to effectively support arthropod biodiversity.