Constructed wetlands use vegetation and microorganisms to remove contaminants like nitrogen and phosphorus from water. For mariculture, the impact of salinity on the efficiency of wastewater treatment of wetlands is unneglectable. However, little is known about their impact on the microbiome in constructed wetlands. Here, we set four salinity levels (15, 22, 29, and 36) in Salicornia constructed wetlands, and the experiment was conducted for a period of 72 days. The 15 group exhibited the highest removal rates of nitrogen compounds and phosphate, compared to the other salinity groups, the nosZ gene exhibited significantly higher expression in the 22 group (p < 0.05), indicated that microorganisms in 22 salinity have higher denitrification abilities. The three dominant phyla identified within the microbiomes were Proteobacteria, known for their diverse metabolic capabilities; Cyanobacteria, important for photosynthesis and nitrogen fixation; and Firmicutes, which include many fermenters. The ecological network analysis revealed a 'small world' model, characterized by high interconnectivity and short path lengths between microbial species, and had higher co-occurrence (45.13%) observed in this study comparing to the Erdös-Réyni random one (32.35%). The genus Microbulbifer emerged as the sole connector taxon, pivotal for integrating different microbial communities involved in nitrogen removal. A negative correlation was observed between salinity levels and network complexity, as assessed by the number of connections and diversity of interactions within the microbial community. Collectively, these findings underscore the critical role of microbial community interactions in optimizing nitrogen removal in constructed wetlands, with potential applications in the design and management of such systems for improved wastewater treatment in mariculture.