Objective: To analyze the species, composition, density, distribution, and seasonal fluctuation of flies in Fengxian District, Shanghai, China, so as to provide a basis for the prevention and control of flies in Fengxian District. Methods: The fly surveillance data in Fengxian District, Shanghai from 2011 to 2021 were collected, and Excel 2013 was used to summarize and analyze of the data. The Kolmogorov-Smirnov test was used to compare the density of flies in different habitats. Results: From 2011 to 2016, there was no significant change in the population density of flies in Fengxian District, ranging from 0.50 to 1.02 flies per cage of average annual density. In 2017 and 2018, the density of flies (1.76 and 5.25 flies per cage, respectively) increased significantly, by 70.87% and 409.71%, respectively, compared with 1.03 flies per cage in 2015. The fly density decreased year by year in 2019 and 2020, and increased in 2021, second only to the peak density in 2018. A total of 2 996 adult flies were captured, with an average density of 2.02 flies per cage. Muscina stabulans was the main species (accounting for 31.38%), followed by Boettcherisca peregrina (accounting for 28.64%). The flies density in large-scale green belts was highest with 2.32 flies per cage. The density of flies reached its peak in June, dropped sharply from July to August, and steadily decreased from September to November. Conclusions: There are more flies in large-scale green belts of Fengxian District, and the fly density peaks in June. The critical period to prevent fly-borne diseases is before June. Relevant departments in Fengxian District should raise and strengthen awareness of fly control. The environment management of large-scale green belt should be strengthened to reduce the breeding environment of flies.