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, have enough knowledge to distinguish a good caliph from a bad one and have sufficient wisdom and judgement to select the best caliph. Al-Mawardi also said that in emergencies when there is no caliphate and no majlis, the people themselves should create a majlis and select a list of candidates for caliph; then the majlis should select a caliph from the list of candidates.