Muawiyah and his agents scored a victory where their intrigues succeeded and Qais was deposed. The next line of action on the part of Muawiyah was to win over Qais to his side. When Muawyiah failed in this object because of the unswerving loyalty of Qais to Ali, Muawyiah made further efforts to insure that Qais and Ali did not reconcile. The agents of Muawyiah in Madina tried to persuade Qais to abandon the cause of Ali, but when he refused to fall in line with them they began to taunt him for his loyalty to the man who did not appreciate his services and the way Ali had treated him. Exasperated by such taunts, Qais decided to visit Ali at Kufa, and demand a fair hearing from Ali. Ali received Qais with due courtesy. The two men had a heart to heart dialogue. As a result of these talks, Ali was convinced of the loyalty of Qais. Ali wanted Qais to remain by his side, and he appointed him as his Chief Adviser. The reaction of Muawyiah to the appointment of Qais as the Chief Adviser of Ali was expressed by him in a letter to his agent in Madina who had taunted Qais in the following words: "By taunting Qais and thereby forcing him to join Ali you have acted as a fool had you given a hundred thousand men to Ali, it would have been a lesser evil to me than to give the counsel of such a man as Qais to my enemy."