Study regionTypical mountain areas in the Hexi Corridor, China. Study focusWater security and ecosystem sustainability of arid inland river basins are highly dependent on upstream streamflow. However, due to the complex geographical environment and limited observation data in the study region, the attribution of spatiotemporal variations in streamflow influenced by climate change and/or human activities remains unclear. Here, we used partial least squares regression (PLSR) and the Budyko framework to unravel the dominant drivers of spatiotemporal variation in streamflow over the past 30 yr. New hydrological insight for the regionPrecipitation, topographic wetness index, slope, forest land, gross primary productivity, hydrological connectivity, soil organic carbon content, silt content, relative relief, NDVI and gravel content dominated spatial variation in streamflow. Temporal variation of streamflow was sensitive to precipitation and land surface. Specifically, increased precipitation and land surface alteration dominated the increase in streamflow in 50 % of the watersheds and the decrease in streamflow in 33 % of them, respectively. Further, land surface alteration was dominated by expansion of agricultural and built-up areas, weakened hydrological connectivity, increased landscape aggregation and forest cover. Controlling agricultural and built-up areas and the scale of afforestation, and focusing on the dynamics of hydrological connectivity and landscape patterns in the upstream reaches are imperative to maintain the security and sustainability of water resources in the arid inland river basins.