Soil microorganisms and mineral ions play a crucial role in the material cycle and energy flow. Different types of sandy, loamy and gravelly soils were selected as experimental sample plots, and the mineral element and microbial diversity of the soils were analyzed by using the curve method with spiked recovery analysis measurement and Illumina high-throughput sequencing technology. Then, principal component analysis and Pearson correlation analysis were applied to extract the factors affecting phosphorus and sulfur cycling by soil mineral ions and microorganisms, and the results showed that the mineral ions in the three different types of soils were mainly Na+, K+, Mg+, and Ca+. The top ten dominant bacterial phyla in relative abundance in different types of soils were Ascomycetes, Actinobacteria, and so on. The eigenvalues of the first four principal components in the principal component analysis of phosphorus-sulfur cycle influencing factors were greater than 1. Therefore, four principal components were selected: soil water content, soil Mg+ content, soil actinomycetes content, and soil Ca+ content.