Understanding the spatiotemporal patterns of water quality is crucial because it provides essential information for water pollution control. The spatiotemporal variations in water quality for the Nanxi River in the Taihu watershed of China were evaluated by a water quality index (WQI) and multivariate statistical techniques; additionally, the potential sources of contamination were identified. The data set included 22 water quality parameters collected during the monitoring period from 2015 to 2020 for 14 monitoring stations. WQI assessment revealed that approximately 85% of monitoring stations were classified as “medium-low” water quality, and most showed continuous improvement in water quality. Cluster analysis divided the 14 monitoring stations into three clusters (low contamination, medium contamination and high contamination). Discriminant analysis identified pH, petroleum, volatile phenol, chemical oxygen demand, total phosphorus, F, S, fecal coliform, SO4, Cl, NO3-N, total hardness, NO2-N and NH3 as important parameters affecting spatial variations. Factor analysis identified four potential contamination source types: nutrient, organics, feces and oil. This study demonstrated the usefulness of multivariate statistical techniques in assessing large data sets, identifying contamination source types, and better understanding spatiotemporal variations in water quality to restore and protect water resources.