In recent decades, the abundance and distribution of certain big game species, particularly red deer (Cervus elaphus) and wild boar (Sus scrofa), have increased in south central Spain as a result of hunting management strategies. The high density of these ungulate species may affect the abundance of epigeous invertebrates. We tested the relationships between big game abundance and biodiversity, taxon richness, the biomass of invertebrates and their frequency on nine hunting estates and in comparison to ungulate exclusion areas. Ungulate exclusion itself affected invertebrate richness, since lower values were found in the open plots, whereas the highest differences in invertebrate diversity between fenced and open plots was found in areas with high wild boar density. Where wild boar densities were high, the number of invertebrates decreased, while where they were low, red deer had a positive effect on invertebrate abundance. Fenced plots thus seemed to provide refuge for invertebrates, particularly where wild boar were abundant. This study supports the idea that the structure of fauna communities is damaged by high density populations of ungulates, probably due to decreased food availability owing to overgrazing, modified conditions of ecological microniches and direct predation. However, the effects depended on the group of invertebrates, since saprophytic species could benefit from high ungulate abundance. Our findings reflect the need to control ungulate population density under Mediterranean conditions in south–western Europe and to implement ungulate exclusion plots.