The affairs of Egypt were at that time in a state great disarray. By great skill and bravery, Qais succeeded in assuming the charge of the governorship of Egypt. He addressed the people in the mosque, and delivered to them Ali's message of goodwill. He took the oath of allegiance to Ali from the people. Saddled in power, Qais sent his agents to the various parts of Egypt to obtain the oath of allegiance of the people to Ali. Such oath was subscribed to by all the people with two exceptions. In Kharbata, the Banu Adlaj led by Yazid Harith did not take the oath of allegiance to Ali. The tribe led by the chief Muslama b Mukhalled were pro-Othman and their sympathies were with the Umayyads and Muawiyah. With great tact and diplomatic skill, Qais b Saad succeeded in making a treaty of neutrality with them. They undertook that if they were not pressed to take an oath of allegiance to Ali, they would not create any trouble for the government of Egypt or the caliphate of Ali. Qais considered that to neutralize these people, was in the best interests of the caliphate, and it was not expedient to press them to take the oath of allegiance to Ali.