In order to estimate the isonymy structure of Spain, we studied surname distribution in 283 Spanish towns based on 3.625 million telephone users selected from 6.328 million users, downloaded from a commercial CD-ROM which contains all 13 million users in the country. Since in Spain the surname is made by the paternal and the maternal surname, it was possible to classify surnames according to parental origin. Two matrices of isonymy distances, one for paternal and one for maternal surnames, were constructed and tested for correlation with geographic distance. For the whole of Spain, Euclidean distance was significantly but weakly correlated with geographic distance both for paternal and maternal surnames, with r = 0.205 +/- 0.013 and r = 0.263 +/- 0.012, respectively. Two dendrograms of the 283 sampled towns were built from the two matrices of Euclidean distance. They are largely colinear. Four main clusters identified by the dendrograms are correlated with geography. Given the surname structure of Spain, we were able to calculate from isonymy and for each town 1). total or expressed inbreeding, 2). random or expected inbreeding, and 3). local inbreeding. Total inbreeding, F(IT), was highest in the North Atlantic regions and lowest along the Mediterranean Coast. The lowest levels were found in Andalusia, Catalunyia, Valencia, and Navarra. Random inbreeding, F(ST), had a similar geographical pattern. Local inbreeding, F(IS), was relatively uniform in the whole of Spain. In towns, random inbreeding dominates over local inbreeding. From the analysis, it emerges that the northwestern area of Spain is the most inbred.