In order to resolve the deadlock, all the Muslims assembled in the Prophet's mosque. The people raised slogans in favor of Ali. The leader of the Egyptian rebels took the stage. He said they had risen against the caliphate of Othman because the administration had become loose, and the grievances of the people had piled up. He added that it was necessary that the Muslims should choose a new Caliph in succession to Othman, and the man they should choose for the office should be conspicuous for his learning, bravery, piety and nearness to the Holy Prophet. He observed that Ali was the only person who fulfilled these qualities. Thereafter he went to Ali, requested him to stretch his hand. When Ali stretched his hand the people rushed to offer allegiance to him. This process went on for several hours, and the people vociferously welcomed the election of Ali as the Caliph.