Spartina alterniflora is one of the most invasive plants on Chinese tidal flats. To explore the responses of macrobenthic communities to the removal of S. alterniflora and the restoration of tidal flats, a survey of macrobenthic and sediment environmental factors was carried out in June 2022 in the mudflat recovery area (MRA) of tidal flats on the south bank of Hangzhou Bay, China. A proximate natural mudflat area (NMA), S. alterniflora area (SAA) and Scirpus mariqueter area (SMA) were selected for comparison with the MRA. A total of 48 macrobenthic species were identified, with 13, 28, 22 and 21species in the MRA, NMA, SAA and SMA, respectively. Cluster, multidimensional scaling (MDS) and SIMPER analysis suggested that the similarity between macrobenthic communities in the MRA and the NMA was high, whereas the similarity between macrobenthic communities in the MRA and SAA and the MRA and SMA was very low. The similarity between macrobenthic communities in the SAA and the SMA was high. ANOSIM analysis suggested that the differences between regions were greater than those within regions (R = 0.881). The sediment factors in the MRA were substantially different from those in the other three habitats, while the sediment factors in the SMA and the SAA were the most similar. Macrobenthos were mainly affected by the mean diameter of the sediment particles. After 1 year of natural recovery in the MRA, the macrobenthos approached the pre-project levels, but to ensure the effectiveness of the treatment project and prevent the recurrence of S. alterniflora, continuous monitoring should be carried out.