The majlis is also the means to elect a new caliph. Al-Mawardi has written that members of the majlis should satisfy three conditions: they must be just, they must have enough knowledge to distinguish a good caliph from a bad one, and must have sufficient wisdom and judgment to select the best caliph. Al-Mawardi also said in emergencies when there is no caliphate and no majlis, the people themselves should create a majlis, select a list of candidates for caliph, then the majlis should select from the list of candidates.