 However the majority of the Zawaya, who still followed the militarism of Nasr ad-Din, were opposed to any compromising with the Hassan, and deposed al-Amin.The Zawaya elected Qadi Uthman as his replacement.Uthman had previously served as Nasr al-Din's Vizier and had been one of his closest companions.