In Spain, a comarca (Spanish: [koˈmaɾka] ) is a traditional informal territorial division, comprising several municipalities sharing geographical, economic or cultural traits, typically with not well defined limits. Modernly, they have been formally defined for all the autonomous communities of Spain, as territorial entities intermediate between the municipality and the province, although their status ranges from official and with administrative functions (providing common local government services) in some communities, to unofficial and based on mere preliminary studies in other communities.