This paper analyses the Spanish city size distribution from a new perspective, focusing on the role played by distance. Using un-truncated data from all cities in 1900 and 2011, we study the spatial distribution of cities and how the city size distribution varies with distance. First, K-densities are estimated to identify different spatial patterns depending on city size, with significant patterns of dispersion found for medium-sized and large cities. Second, using a distance-based approach that considers all possible combinations of cities within a 200-kilometre radius, we analyse the influence of distance on the city size distribution parameters, considering both the Pareto and lognormal distributions. The results validate the Pareto distribution in most of the cases regardless of city size, and the lognormal distribution at short distances.