However, this appears to have been a Pyrrhic victory for the Arabs, since they did not pursue their opponents. Unlike the Rus', Muslim Arabs never managed to conquer Gilan as they did with other provinces in Iran. Gilanis and Deylamites successfully repulsed all Arab attempts to occupy their land or to convert them to Islam. In fact, it was the Deylamites under the Buyid king Mu'izz al-Dawla who finally shifted the balance of power by conquering Baghdad in 945. Mu'izz al-Dawla, however, allowed the Abbasid caliphs to remain in comfortable, secluded captivity in their palaces.