Urbanization has reshaped ecosystems and changed natural processes, driving an intense transformation of biomes, biotic community composition and diversity. Despite the growing interest in studying urban ecology over the last decades, the consequences of these changes on species occupying these ecosystems are not yet fully understood. Trophic generalism and tolerance to human disturbance have been proposed as two key traits in the colonization of urban environments. However, most studies focused on species’ average traits, paying less attention to the potential role of inter-individual variability. Here, we examined diet specialization in urban and rural breeding pairs, as well as its relationship with individual behaviour and intraspecific competition, using the burrowing owl as a study model. Our results show that both urban and rural breeding pairs behaved as trophic specialists. The diet of burrowing owl breeding pairs followed a gradient from coleopteran- to micromammal-dominated, which is related to individual behaviour (bolder individuals consuming more coleopterans than shyer ones). Besides, pairs distant from others showed a more diverse diet than those experiencing higher levels of intraspecific competition. Models fitted separately for each habitat showed that the proportion of micromammals in the diet of urban breeding pairs was related to their behavior, while the diet of rural pairs was not affected by individual behavior but by intraspecific competition. However, despite the strong selection of tame and more explorative individuals in urban environments and the higher density they reach in this habitat type, they did not differ in their degree of diet specialization from rural conspecifics. Although it would be necessary to evaluate prey availability on a small scale, our results suggest that burrowing owl breeding pairs behave as specialists, despite the generalist character of the species, and that this specialization is not affected by the occupation of urban environments but to individual behaviour and intraspecific competition.