Microbial communities are closely related to the overall health and quality of soil, but studies on microbial ecology in apple pear orchard soils are limited. In the current study, 28 soil samples were collected from three apple pear orchards, and the composition and structure of fungal and bacterial communities were investigated by high-throughput sequencing. The molecular ecological network showed that the keystone taxa of bacterial communities were Actinobacteria, Proteobacteria, Gemmatimonadetes, Acidobacteria, Nitrospirae, and Chloroflexi, and the keystone taxon of fungal communities was Ascomycota. Mantel tests showed that soil texture and pH were important factors shaping soil bacterial and fungal communities, and soil water soluble organic carbon (WSOC) and nitrate nitrogen (NO3--N) were also closely related to soil bacterial communities. Canonical correspondence analysis (CCA) and variation partition analysis (VPA) revealed that geographic distance, soil texture, pH, and other soil properties could explain 10.55%, 13.5%, and 19.03% of the overall variation in bacterial communities, and 11.61%, 13.03%, and 20.26% of the overall variation in fungal communities, respectively. The keystone taxa of bacterial and fungal communities in apple pear orchard soils and their strong correlation with soil properties could provide useful clues toward sustainable management of orchards.