They reached consensus on the obligatory nature of the appointment of the Imam, the only difference being as to whether it is obligatory on Allah or on people, with transmitted or intellectual evidence.
The position of the people of the Sunnah and the great majority of the Mu’tazilah is that it is an obligation on people because of:
1. evidence transmitted in his words, may Allah bless him and grant him peace, in that which Muslim narrated in the hadith of Ibn Umar, may Allah be pleased with him, in this wording: “Whoever dies without an Imam dies the death of the time of ignorance,”
2. and because the Companions, may Allah be pleased with them, considered the most important of all matters to be the appointment of the Imam to such an extent that they gave it precedence over his burial, may Allah bless him and grant him peace,
3. and because there is no avoiding the necessity of the Muslims having an Imam who undertakes to execute their legal judgements, establish their hudud limits, protect their borders, equip their armies, take their zakat (sadaqat), conquer insurgents, thieves and brigands, establish the jumu’ahs and the eids, marry off young people who have no guardians, divide up the spoils of battle, and the similar duties of the shari’ah which individual members of the ummah cannot take upon themselves. (Mulla ‘Ali al-Qari, Minah ar-rawd al-azhar fi sharh al-Fiqh al-Akbar)