We investigated community structure of macroinvertebrate, water environment factors, hydrological factors at 23 sampling sites of the Yongding River basin from spring 2017 (April) to autumn 2017 (November). We analyzed the composition, spatial and temporal distribution of the macroinvertebrate functional feeding groups, as well as their responses to changes in riverine habitat. A total of 78 macroinvertebrate species were identified, with 52, 50 and 53 macroinvertebrate species in spring, summer and autumn respectively. The dominant functional feeding groups were gather-collectors, followed by predators, while the proportion of scrapers, filter-collectors and shredders were extremely low. Dominant species in the three seasons were all gather-collectors, including Orthocladius, Rheotanytarsus, Cricotopus in spring, Glyptotendipes in summer, and Polypedilum, Chironomus, Orthocladius in autumn. Results of redundancy analysis showed that the functional feeding groups of macroinvertebrate community structure were mainly influenced by water temperature, flow velocity, salinity, and total phosphorus in spring, by total phosphorus, dissolved oxygen, conductivity and flow capacity in summer, and by total phosphorus and dissolved oxygen in autumn. Total phosphorus had positive correlation with gather-collectors in all three seasons, indicating that the functional feeding groups of macroinvertebrates were affected by water pollution. The evaluation based on the metrics of functional feeding groups showed that: 1) in terms of material cycle, primary productivity of Guishui River were significantly higher than other regions, and that in autumn were significantly higher than other seasons. The secondary productivity and decomposition capacity of Yanghe River were significantly higher than other regions, and those in spring were significantly higher than other seasons. The autotrophy/heterotrophy of Yanghe River was significantly lower than other regions, and that in spring were significantly higher than other seasons. 2) The longitudinal transport capacity of Sanggan River was significantly higher than other regions, and that in autumn was significantly higher than other seasons. 3) The lateral input capacity of Guishui River was significantly higher than other regions, and that in summer was significantly higher than other seasons.