 The Turkish forces of the Fatimid army seized most of Cairo and held the city and Caliph at ransom, while the Berber troops and remaining Sudanese forces roamed the other parts of Egypt.By 1072, in a desperate attempt to save Egypt, the Fatimid Caliph Abū Tamīm Ma'ad al-Mustansir Billah recalled general Badr al-Jamali, who was at the time the governor of Acre.Badr al-Jamali led his troops into Egypt and was able to successfully suppress the different groups of the rebelling armies, largely purging the Turks in the process.