The widely invasive North American pumpkinseed sunfish, Lepomis gibbosus, is currently established in desert rivers in Morocco. The success of pumpkinseed in novel ecosystems has been associated with its generalist diet, but this trait remains unevaluated in arid regions. Desert rivers are harsh environments with limited water and prey availability which may adversely constrain the diet of fish. Here we studied the diet of pumpkinseed across 4 sites in the Draa River, embracing a 450 m elevational gradient covering from extremely dry lowlands to relatively humid highlands. We described pumpkinseed diet through the analysis of stomach contents of 82 individuals, collected in the fall of 2013. Pumpkinseed diet was dominated by Chironomidae in dry lowlands, while Ephemeroptera, Heteroptera, Trichoptera and Odonata were relevant prey in more humid highlands. Population diet breadth expanded with elevation, but individual specialization in diet was low among all sites. Our results highlight considerable changes in diet composition and breadth with aridity, suggesting that feeding plasticity and use of exclusive, locally abundant prey rather than generalized feeding may be associated with the success of pumpkinseed in most arid areas in desert rivers.