Spatial abundance patterns across species' ranges have attracted intense attention in macroecology and biogeography. One key hypothesis has been that abundance declines with geographical distance from the range centre, but tests of this idea have shown that the effect may occur indeed only in a minority of cases. We explore an alternative hypothesis: that species' abundances decline with distance from the centroid of the species' habitable conditions in environmental space (the ecological niche). We demonstrate consistent negative abundance-ecological distance relationships across all 11 species analysed (turtles to wolves), and that relationships in environmental space are consistently stronger than relationships in geographical space.