Divergent selection stemming from environmental variation may induce local adaptation and ecological speciation whereas gene flow might have a homogenizing effect. Gene flow among populations using different environments can be reduced by geographical distance (isolation-by-distance) or by divergent selection stemming from resource use (isolation-by-ecology). We tested for and encountered phenotypic and genetic divergence among Spanish crossbills utilizing different species of co-occurring pine trees as their food resource. Morphological, vocal and mtDNA divergence were not correlated with geographical distance, but they were correlated with differences in resource use. Resource diversity has now been found to repeatedly predict crossbill diversity. However, when resource use is not 100% differentiated, additional characters (morphological, vocal, genetic) must be used to uncover and validate hidden population structure. In general, this confirms that ecology drives adaptive divergence and limits neutral gene flow as the first steps towards ecological speciation, unprevented by a high potential for gene flow.