Between 1025 and 1028, the Fatimids reached an agreement with Salih's Jarrahid/Tayyi allies, allowing them to maintain their foothold in interior Palestine, while Anushtakin was recalled to Cairo. In contrast to the Mirdasids, the Tayy consistently plundered their territory and its inhabitants. Moreover, the Fatimids would not permanently tolerate independent rule in Palestine: as Egypt's gateway to Southwest Asia, this posed a threat to the Caliphate's survival. Meanwhile, as the Fatimids regrouped, the Kalb had been repelled from Damascus, and in 1028, their emir died. He was replaced by his nephew, Rafi ibn Abi'l-Layl, who defected to the Fatimids, thus weakening the tripartite Bedouin alliance. In November 1028, Anushtakin returned to Palestine with a large Fatimid army and more horsemen from the Kalb and Banu Fazara to drive out the Tayy and evict the Mirdasids from central Syria.