This paper provides some evidence that the division of labour is limited by the extent of the (local) market. We first propose a theoretical model. Its main prediction is that scarce occupations are over-represented in large cities. Using census data for French cities, we then provide strong empirical support for this prediction.