The smallest unit in the administrative-territorial system of the Crimean Khanate was the mahalle — neighborhoods. Imams or muezzins served as a link between the state and the residents of a particular neighborhood. In essence, they performed the functions of local self-government.