The riparian vegetation of a basin in the NW Spain was studied to establish its spatial variation pattern and to relate floristic and structural differences in the community to environmental factors. Eighty-seven sampling units in 43 sampling stations were used. Samples were classified in 5 groups using Two Way Indicator Species Analysis (TWINSPAN). Three groups represented reaches with riparian wood along their banks: Mediterranean alderwoods and shrubby willow woods. The remaining two corresponded to floodplains with vegetation colonizing moderately eutrophicated deposits of gravel. Structural characteristics of richness and diversity differentiated the alder woods. In these, the shaded environment created by the woody species limited herbaceous vegetation development. This was dominated by Carex acuta subsp. broteriana. Classification and CCA ordination results were compared. The TWINSPAN groups could be recognized in the CCA graph. The ordination was related to a pollution gradient associated with altitude. This pollution gradient involved bank ruderalization, incorporation of nitrophilous species and a decrease in the vegetation quality. The influence of the lithological features on vegetation was also evident.