Phosphorus (P) is a crucial limiting nutrient in soil ecosystems, significantly influencing soil fertility and plant productivity. Soil microorganisms adapt to phosphorus deficiency and enhance soil phosphorus effectiveness through various mechanisms, which are notably influenced by land use practices. This study examined the impact of different land use types (long-term continuous maize farmland, abandoned evolving grassland, artificial tamarisk forests, artificial ash forests, and wetlands) on soil phosphorus-cycling functional genes within the Tanyang Forest Farm in a typical region of the Yellow River alluvial plain using macro genome sequencing technology. The gene cluster related to inorganic phosphorus solubilization and organic phosphorus mineralization exhibited the highest relative abundance across different land use types (2.24 × 10−3), followed by the gene cluster associated with phosphorus transport and uptake (1.42 × 10−3), with the lowest relative abundance observed for the P-starvation response regulation gene cluster (5.52 × 10−4). Significant differences were found in the physical and chemical properties of the soils and the relative abundance of phosphorus-cycling functional genes among various land use types. The lowest relative abundance of soil phosphorus-cycling functional genes was observed in forestland, with both forestland types showing significantly lower gene abundance compared to wetland, farmland, and grassland. Correlation analysis and redundancy analysis (RDA) revealed a significant relationship between soil physicochemical properties and soil phosphorus-cycling functional genes, with ammonium nitrogen, organic carbon, total nitrogen, and pH being the main environmental factors influencing the abundance of these genes, explaining 70% of the variation in their relative abundance. Our study reveals land use’s impact on soil phosphorus-cycling genes, offering genetic insights into microbial responses to land use changes.