Casuarina equisetifolia (C. equisetifolia) is an economically important forest tree species, often cultivated in continuous monoculture as a coastal protection forest. Continuous planting has gradually affected growth and severely restricted the sustainable development of the C. equisetifolia industry. In this study, we analyzed the effects of continuous planting on C. equisetifolia growth and explored the rhizosphere soil microecological mechanism from a metagenomic perspective. The results showed that continuous planting resulted in dwarfing, shorter root length, and reduced C. equisetifolia seedling root system. Metagenomics analysis showed that 10 key characteristic microorganisms, mainly Actinoallomurus, Actinomadura, and Mycobacterium, were responsible for continuously planted C. equisetifolia trees. Quantitative analysis showed that the number of microorganisms in these three genera decreased significantly with the increase of continuous planting. Gene function analysis showed that continuous planting led to the weakening of the environmental information processing-signal transduction ability of soil characteristic microorganisms, and the decrease of C. equisetifolia trees against stress. Reduced capacity for metabolism, genetic information processing-replication and repair resulted in reduced microbial propagation and reduced microbial quantity in the rhizosphere soil of C. equisetifolia trees. Secondly, amino acid metabolism, carbohydrate metabolism, glycan biosynthesis and metabolism, lipid metabolism, metabolism of cofactors and vitamins were all significantly reduced, resulting in a decrease in the ability of the soil to synthesize and metabolize carbon and nitrogen. These reduced capacities further led to reduced soil microbial quantity, microbial carbon and nitrogen, microbial respiration intensity, reduced soil enzyme nutrient cycling and resistance-related enzyme activities, a significant reduction in available nutrient content of rhizosphere soils, a reduction in the ion exchange capacity, and an impediment to C. equisetifolia growth. This study provides an important basis for the management of continuously planted C. equisetifolia plantations.