Tensions between the regime and the army are a crucial component for the understanding of Fatimid history and, as will be shown, they had a mostly destabilizing impact on society and the economy. A host of factors shaped the relationship between the regime, the army, and society. Among these factors, the socio-military composition of the army was especially important. The composition of the army was partly an outcome of deliberate policies of the regime, partly a consequence of local conditions, and partly a reflection of wider Islamic practices. In the case of the Fatimids, the local conditions of Ifrīqiya (Tunisia) and Egypt and the military traditions of the deposed regimes of the Aghlabids and the Ikhshidids must be taken into consideration. Fatimid reliance on the Berbers of Kutāma was not much a matter of a choice; they were the first adherents of the Fatimids and had helped bring them to power in Ifrīqiya. However, from the earliest years of Fatimid rule the Aghlabid military traditions and local conditions were reflected in the composition of the Fatimid army and had an influence on Fatimid policies. Conditions in Egypt played a smaller role in shaping the Fatimid army. Certain elements of the defeated Egyptian army (the lkhshīdiyya and the Kāfūriyya) were incorporated into the Fatimid army while others were disbanded. The Fatimid drive into Palestine and Syria, whose ultimate goal was Baghdad, confronted the Fatimids with militarily superior armies built on the model of the Buyid-'Abbasid and the Byzantines.