Under the melik of Erivan were a number of other meliks in the khanate, with each maḥall inhabited by Armenians having its own local melik. The meliks of Erivan themselves, especially the last, Melik Sahak II, were among the most important, influential and respected individuals in the khanate and both Christians and Muslims alike sought their advice, protection and intercession. Second in importance only to the khan himself, they alone among the Armenians of Erivan were allowed to wear the dress of an Iranian of rank. The melik of Erivan had full administrative, legislative and judicial authority over Armenians up to the sentence of the death penalty, which only the khan was allowed to impose. The melik exercised a military function as well, because he or his appointee commanded the Armenian infantry contingents in the khan's army. All the other meliks and village headmen () of the khanate were subordinate to the melik of Erivan and all the Armenian villages of the khanate were required to pay him an annual tax.