Mites are among the most abundant invertebrates in subsurface ecosystems, and their community assemblages and distributions are often significantly influenced by the diversity of habitat resources. The cave ecosystem encompasses drastic changes in nonbiological factors, such as changes in lighting conditions from bright to extraordinarily dark and habitat gradients of surface plant resources from abundant to scarce or even disappearing, providing an ideal unique environment for evaluating the assembly mechanism of soil animal communities. Nevertheless, there still needs to be a sufficient understanding of the biodiversity patterns and drivers of mite communities across environmental gradients in karst caves. We conducted a comprehensive survey on the composition and diversity of soil mites in three photometric zones (dark, twilight, and light) of a typical karst cave and its adjoining extractive environments (forest scrub and farmland). Our research aimed to investigate the ecological relationships of mite communities between above- and below-ground habitats and the effects of abiotic factors on mite communities. We collected 49 families, 86 genera, and 1284 mites. In the external cave environment, we captured 1052 mites from 72 genera and 45 families; in the internal cave environment, we captured 232 mites from 46 genera and 29 families. The abundance, richness of genera, and diversity parameters of the mite community decreased from the cave entrance to the cave interior with decreasing light intensity. Oribatid mites dominated the mite community. Protoribates and Scheloribates were the dominant genera, along with Tectocepheus and 11 other genera, which primarily distinguished the mite communities among different habitats. Forty endemic taxa were found in the external cave environment, compared to 14 endemic taxa in the internal cave environment. The mite community showed a strong preference for the cave ecosystem habitat. Temperature, humidity, and soil nitrogen content significantly influenced the distribution pattern of mite communities (VIP > 0.8, p < 0.05).