The mahalla was the basic residential quarter of the Islamic city, a semi-autonomous neighbourhood organised around a local mosque, a few shops, a fountain or bath and a network of narrow, often gated lanes. Frequently bound by kinship, trade or religious community, the quarter handled much of its own security, charity and dispute settlement, and could be closed off at night behind its own gate. Its tight, irregular street pattern shaded the houses, preserved privacy and screened the inward-looking courtyard dwellings from public view. The quarter, rather than the gridded block, was the cell from which the dense Muslim city was assembled.
The mahalla defined the introverted, finely grained, community-governed structure of the Islamic city, a neighbourhood unit balancing privacy, locality and self-administration. Its logic of clustered, semi-private quarters still shapes the historic medinas of the Muslim world.