Al-Mu'izz was succeeded by his son Nizar called al-'Aziz, who sent his large army to defeat Alptakin and the Qarmatians in southern Palestine in 978. His vizier Ibn Killis arranged for Alptakin and his Turks to serve the Fatimids. Led by the Turk general Baltakin, the Fatimid army eventually took Damascus, allowing its citizen governor Qassam to continue his administration under their Berber governor. As the Hamdanid state of Aleppo declined, Syrians began supporting the Fatimids, and the caliph al-'Aziz appointed Bakjur governor. An inadequate Nile flood caused a famine and riots in Egypt, and the cruel Bakjur was removed in 989. Al-'Aziz was planning to invade the Byzantines when he died in 996.
Al-Hakim became the next Fatimid caliph, and in 999 a ten-year truce was negotiated by the Jerusalem patriarch with the Byzantine emperor. Al-Hakim was only 15 when he had his guardian and tutor Barjuwan murdered so that he could rule himself. This erratic caliph had many of his senior officials put to death, and Christians and Jews were persecuted. He banned alcohol along with watercress and fish without scales, playing chess and killing dogs. At first Christian crosses were banned, and then Christians were required to wear large crosses. He founded the school Dar al-'lim but later had many of the teachers he appointed murdered. His random brutality culminated in the burning of Fustat. Despite his misrule, a Sunni invasion in 1006 was not supported by the local Sunnis and was defeated. He offended Christians by destroying the church of the Holy Sepulcher at Jerusalem in 1010. The Firids governed Tunisia and eastern Algeria for the Fatimids, but Sunnis resisted and killed about 20,000 Shi'is in the riots of 1016 that started in Qairawan. Al-Hakim was ordered killed by his sister Sitt al-Mulk in 1021; but his body was never found, and the Druze sect believes he will come again at the end of the world.
While al-Zahir was caliph (r. 1021-36), Sitt al-Mulk effectively ruled Egypt she died in 1024. For eighteen years after 1027 the vizier Ahmad ibn 'Ali al-Jarjar'i governed a fairly peaceful empire even though his hands had been cut off by al-Hakim. Berbers defeated the Turks in civil strife at Cairo in 1029. The same year al-Jarjar'i sent a force led by Anushtakin to defeat a Bedouin uprising at a battle near the Sea of Galilee. Anushtakin then governed Syria; he captured Aleppo in 1038 and died in 1041. Al-Zahir's son al-Mustansir (r. 1036-94) became the next Fatimid caliph and sent missionaries to Iran and Transoxiana. The Fatimids countered the rebellion in the Zirid west by sending about 50,000 warriors of the Banu Hilal and Banu Sulaym tribes to invade the Maghrib (northwest Africa) in 1050. Historian Ibn Khaldun blamed the economic decline in Ifriqiya on these nomadic invasions. Gold from Nubia added greatly to the Fatimids' wealth, helping trade to flourish. The Fatimid empire reached its greatest expansion when the Turk general Arslan al-Basasiri defected at Mosul in 1057 and even took Baghdad for a year; but the Seljuks drove him out of Baghdad in 1059.
When the Nile flood was low, famines occurred in Egypt during the years 1023-25 and 1054-55 when the caliph appealed to the Byzantine emperor Constantine Monomachus for food, and 1065-72. Turks led by Atsiz seized Jerusalem and most of Palestine in 1071 and five years later defeated the Fatimids' Berber garrison at Damascus. Civil war in Egypt broke out between the Turks and the Sudanese soldiers, and in 1073 the caliph appealed to Acre's governor Badr al-Jamali, who took power the next year by executing Turkish generals and Egyptian officials in Cairo. Badr died in 1094 and was succeeded as army commander by his son al-Afdal, who chose the next caliph, al-Musta'li. The Isma'ilis supported the previous caliph's elder son an-Nizar and were called Assassins (literally "hashish-users") by their adversaries for murdering their political enemies.
In 1036 Guddala chief Yahya ibn Ibrahim went on pilgrimage to Mecca; learning more about Islam from jurist Abu 'Imran al-Fasi in Qairawan, he asked for a teacher to be sent. The controversial Maliki scholar 'Abdulla ibn Yasin brought Sunni doctrine to the Sanhaja in Guddala, had dogs killed so that they would not be eaten anymore, abolished illegal taxes, and distributed booty according to Islamic law. Ibn Yasin lived an ascetic life and taught repentance and purification, but his extremism led to his being expelled from Guddala. Ibn Yasin's retreat from a resisting society was compared to the hijra of Muhammad. He gathered followers inspired by his teachings and united the larger Guddala and Lamtuna tribes with other Sanhaja tribes of the Sahara through holy war (jihad) in the Almoravid movement. Ibn Yasin appointed Lamtuna chief Yahya ibn 'Umar military commander and even flogged him for an unstated sin. Ibn 'Umar led the Almoravid attack that conquered Sijilmasa in 1053 and Awdaghust the next year.
When the Zanata rebelled in Sijilmasa, Ibn Yasin drove the Maghrawa from southern Morocco. In 1056 the first Sudanese kingdom to convert to Islam, Takrur, aided the Almoravids against the Guddala, who had withdrawn from the movement. Yahya ibn 'Umar was killed, and according to al-Bakri the Almoravids made no more attempts against the Guddala. His brother Abu Bakr ibn 'Umar became Lamtuna chief and invaded the Barghawata because of their heretical beliefs. Abu Bakr married Zaynab in 1060; but when she refused to go into the desert with him, he divorced her and told her to marry his cousin Yusuf ibn Tashfin, who took over the Almoravid forces in Morocco in 1061. He fought the Zanata in northern Morocco and took Fez in 1069, massacring many. The next year the Almoravids started building their capital at Marrakesh. Ibn Tashfin established an executive council of legal consultants (fuqaha). He acquired Ceuta by 1083, and in 1086 Ibn Tashfin sent an army to help the Muslims in Spain.
Almoravid Yusuf ibn Tashfin began the conquest of the western Maghrib (Morocco and part of Algeria) in 1061, and by the time he died in 1106 they had also taken over Muslim Spain except for Zaragoza, which the Almoravids gained in 1110. He was succeeded by his son 'Ali (r. 1106-43), who led campaigns in Spain; but after 1110 the Christians began winning back territory. Like his father, 'Ali was guided by Maliki counselors who followed their scholastic theology rather than the Qur'an and traditions. After philosopher al-Ghazali criticized their narrow dogmatism, 'Ali ibn Yusuf ordered al-Ghazali's books burned, and he threatened anyone keeping this writing with death. Sufism spread even though they were persecuted by the Malikis. Ibn Tumart was said to have met al-Ghazali in Baghdad, and he became an effective religious preacher. By 1121 he was criticizing the use of musical instruments and pleasures in Marrakesh. After Ibn Tumart threw 'Ali ibn Yusuf's sister off her horse, he was banished and fled to the mountains.
Ibn Tumart was proclaimed the prophesied mahdi and infallible imam by his followers in 1122. Thus he founded the Almohad movement among mountain people based on the oneness of God and emphasizing the Qur'an, traditions, and the consensus of the prophet's companions. He consulted two councils-his ten original supporters and another of fifty. He made attending spiritual activities compulsory, and on a "day of sorting" he purged unbelievers from the tribe by executing them. In 1128 an Almoravid attack against the Almohad fortress at Tinmel failed, and then the Almohads besieged Marrakesh. About that time Ibn Tumart died; but 'Abdul-Mumin kept it secret for over two years while he purged his community and led them to victory before taking the title caliph (successor) of Ibn Tumart. He ruled for 33 years, gradually overcoming the Almoravids and uniting the Maghrib under the Almohads. Tashfin ibn 'Ali succeeded his father in 1143, but he died fighting the Almohads near Oran two years later. The next year the Almohads took Fez after nine months' siege, and in 1147 Marrakesh fell after a siege of eleven months. By 1148 the Almohads had taken over Andalusian Spain from the Almoravids too.
Meanwhile Norman king Roger II from Sicily had invaded and taken Djerba in 1134, and by 1148 the Normans had control of Tripoli and Mahdiya. After the Genoese attacked the declining Hammadid kingdom at Bougie, the Almohads took over that city in 1152 as Hammadid king Yahya ibn 'Abdul-'Aziz (r. 1122-52) fled. They defeated Tunisians the next year, and in 1154 Almohad caliph 'Abdul-Mumin appointed his sons governors with a shayk to advise each. In 1159 he led a strong army east and with a naval blockade forced Mahdiya to surrender in January 1160, making the Normans leave Africa. 'Abdul-Mumin removed rebellious tribes to the western Maghrib, where they caused more trouble. The Almohads began a geographic survey in 1159 to exclude one-third of the land as deserts, mountains, rivers, lakes, and roads so that they could tax the rest. Those who did not accept Almohad doctrine could have their property confiscated. Makhzan (governing) tribes were exempt from the land tax (kharaj) and enforced payment on the settlers and owned slaves. The Muminid family also took much more of the revenue. These inequities eventually led to the decline and fall of the Almohads.
After 'Abdul-Mumin died in 1163, his son Muhammad was replaced after 45 days by his brother Abu Ya'qub Yusuf, who was chosen as more capable. He liked to converse with the philosopher Ibn Tufayl, who urged Ibn Rushd (Averroes) to write commentaries on Aristotle. Abu Ya'qub suppressed rebellions by the Ghomara and Sanhaja by 1167 and fought the Christians on the Iberian peninsula until he was killed by the Portuguese during the siege of Santarem in 1184. That year the Almoravid 'Ali ibn Ghaniya, who had been ruling in the Balearic Islands, invaded and took over Bougie with 4,000 masked warriors. They were joined by other tribes opposing the Almohads. They captured Mahdiya and made Gabés their capital. The Almohad Abu Yusuf Ya'qub (1184-99) rejected the belief that Ibn Tumart was infallible and urged the scholars to go back to the Qur'an and the traditions of Muhammad. Sufism spread during this era. Ya'qub used 20,000 cavalry to win back Tunis in 1188 from 'Ali ibn Ghaniya, who died that year; but his brother Yahya ibn Ghaniya took his place, and by 1203 they had conquered Qairawan and Tunis.
Almohad caliph al-Nasir (r. 1199-1214) led an invasion of the Balearic Islands and then was able to defeat the Banu Ghaniya in Tunisia by 1206. The next year he appointed 'Abdul-Wahid, son of Tumart's companion Abu Muhammad Hafs 'Umar, as viceroy of Ifriqiya, starting the Hafsid dynasty. In 1209 the nomadic Almoravids suffered a devastating defeat at Djebel Nefousa, and a large Christian army defeated the Almohads at Las Navas de Tolosa in 1212. Almohad caliph al-Mustansir (r. 1214-24) was preoccupied with his own pleasures. Abu Muhammad died in 1221, but Yahya ibn Ghaniya survived and turned to raiding in his last ten years before dying in 1237.
Rivalries between shaykhs weakened the Almohad kingdom, and caliphs were assassinated in 1224 and 1227. During civil war Castilians intervened, helping caliph al-Mamun to enter Marrakesh in 1228. He appointed the Hafsid Abu Zakariya (r. 1229-49) viceroy of Ifriqiya. Yahya ibn Ghaniya captured Marrakesh, and caliph al-Mamun died on his way back there in 1232. His young son al-Rashid (r. 1232-42) had a rival assassinated to regain the capital. The Hafsids in Ifriqiya broke free of the Almohads, and Abu Zakariya signed trade agreements with Venice in 1231, Pisa in 1234, and Genoa in 1236. He established his capital at Tunis, which developed a thriving urban culture. Abu Zakariya compelled Tlemcen, Sijilmasa, and Sabta to recognize his sovereignty, and he was succeeded by his son al-Mustansir (r. 1249-77). He tolerated Christians, and in 1250 the Dominicans founded the Studium Arabicum, where missionaries could study Muslim beliefs. The Mongol sacking of Baghdad in 1258 made al-Mustansir the most respected Muslim monarch, and the next year the governor of Mecca sent a letter recognizing him as caliph. During the reigns of al-Sa'id (1242-48) and 'Umar al-Murtada (1248-66) the Hafsids and the Marinids encroached on Almohad territory, and in 1269 the Almohad kingdom was extinguished when they lost Marrakesh to the Marinids.
The Marinid tribes fought with the Almohads against Christians in Spain; but after the Muslim defeat in 1212 'Abdul-Haqq ibn Muhya led them into northeastern Morocco, where they battled an army of 10,000 Almohads in 1217; 'Abdul-Haqq was killed, but his son 'Uthman led the tribes to victory near Fez. Muhammad ibn 'Abdul-Haqq succeeded his brother 'Uthman in 1239. After the Almohads led by al-Sa'id defeated the Marinids and killed Muhammad in 1244, the Marinids went back south; but the next year Abu Yahya Abu Bakr, another son of 'Abdul-Haqq, led the Marinids and took Miknasa from the Almohads. After al-Sa'id was killed fighting the Marinids and Zayyanids in 1248, the Marinids captured Fez, Taza, and Sala. By the time Abu Yahya died in 1258 they occupied most of Morocco including Sijilmasa, and Abu Yahya's brother Abu Yusuf Ya'qub (r. 1258-86) consolidated Marinid control.
The Banu 'Abdul-Wad became prominent when al-Mamun appointed their chief Jabir ibn Yusuf governor at Tlemcen in 1230. The Banu Zayyan clan of this tribe took over the position in 1233, though Zaydan ibn Zayyan was killed three years later and was succeeded by his brother Yaghmurasan, founder of the Zayyanid dynasty. They withstood invasions by the Hafsids in 1242 and the Almohads in 1248. The Marinids and Hafsids introduced madrasas, where students could live and study Islamic law. These urban theologians countered the mystical popularity of the Sufis in the countryside.
The Marinid siege of the Almohad capital at Marrakesh led by Abu Yusuf failed in 1262, and his son was killed. Sijilmasa had been conquered by the Marinids in 1255; but it became independent and then was captured by the Zayyanids in 1263. Abu Yusuf finally evicted the last of the Almohads from Marrakesh in 1269. That year the missionary Ramon Marti (Raymond Martin) urged France's Louis XI to crusade against Tunis, arguing caliph al-Mustansir might convert to Christianity, though the main reasons probably were unpaid debts and tribute to Charles of Anjou. Al-Mustansir quickly made peace with both Louis and Charles and also a commercial treaty with Aragon in 1271. The Marinids defeated Yaghmurasan in 1272 and, led by Abu Yusuf, captured Sijilmasa two years later by a siege said to have employed the first artillery. A truce with the Zayyanids enabled Abu Yusuf Ya'qub to lead four campaigns into Spain to defend Muslims there. The Marinids built a new city at Fez.
After al-Mustansir died in 1277, the Hafsid state split between rulers in Tunis and Bijaya, as Aragon's Pedro III interfered by demanding tribute from Bijaya. Several rulers fought for power until the Hafsid Abu Zakariya captured Bijaya in 1285. Abu Hafs (r. 1284-95) captured Tunis and agreed to pay Pedro tribute as king of Sicily. However, that year Marinid Abu Yusuf campaigned in Spain for the fourth time and made a peace treaty with Don Sancho that returned thirteen mule-loads of Arabic manuscripts to the Muslims. These efforts were continued by his successor Abu Ya'qub Yusuf (r. 1286-1307), who then spent the last twelve years of his life at war with the Zayyanids, whose expansion continued under Yaghmurasan's son 'Uthman (r. 1282-1303).
North Africa 1300-1500
By 1275 the Mamluk empire in Egypt had annexed the northern part of the Nubian kingdom that was Christian. When Sanbu became king of Nubia at Dongola, Mukurra officially converted to Islam and made the cathedral a mosque in 1317. After 1320 the Manfalut province paid tribute to the Egyptian sultan, and it became a slave market. Despite Nubian efforts to regain their independence led by Kanz al-Daula (d. 1323) and Banu 'l-Kanz, Dongola was destroyed. In 1365 Kenuz and Ikrima Arabs ravaged southern Egypt and murdered the Nubian king, and the capital was moved to Du. The monarchy collapsed in 1397 when the king of Du fled to Cairo. Islam replaced Christianity in Nubia, and in the next century 'Alwa was also overrun by pastoral Egyptian Arabs.
Mamluk means slave, and this dynasty rose in Egypt during the later crusades through military discipline and by seizing the throne of Egypt in 1250. Al-Nasir Muhammad, the son of Kalavun (r. 1279-90), became sultan and was deposed twice before his third long reign (1310-41). In 1316 he implemented military feudalism with his cadastral survey that redistributed lands as fiefs and taxed agricultural products. A hundred thousand workers lengthened the Alexandria canal so that more land could be irrigated by a dozen new dams. Karimi merchants helped the sultan and his governors endow madrasas and waqfs for charitable purposes and to patronize poets and scholars, who often criticized the luxurious lives of the ruling class. During this era Egypt produced and gave hospitality to several outstanding historians. In mid-century the black plague killed about 900,000 people in Cairo. Christians were persecuted, and the Coptic patriarch Marcos was imprisoned in 1352. For forty years after al-Nasir's death his eight sons, two grandsons, and two great-grandsons struggled for power. In 1365 Cypriots, Venetians, and Genoese attacked and plundered Alexandria. Turkish slaves were being replaced by Circassians, and a Circassian named Barquq (r. 1382-99) became sultan; but the Mamluks in Syria revolted against his son Faraj, who was finally killed in 1411.
Then two Mamluks named al-Mu'ayyad (r. 1412-21) and Barsbay (r. 1422-38) tried to restore order. Barsbay gained wealth by monopolizing sugar and by taxing the spice trade from India that passed through Egypt to Europe. He also banned the use of European gold coins in his realm. Karimi and European merchants protested and explored other routes. Egypt's navy fought corsairs in the Mediterranean, and in 1425 they captured Cyprus king James of Lusignan, who became a vassal and promised tribute; but later attempts to conquer Rhodes failed. Mamluk sultans Jaqmaq (r. 1438-1453) and Inal (r. 1453-61) used diplomacy to fend off an invasion from the Ottoman Turks; but in 1481 Sultan Qait Bay (r. 1467-96) made the mistake of giving refuge to the Ottoman prince Jem, who was challenging his brother, Sultan Bayezid II. In 1485 the Ottomans invaded Cilicia, but the Mamluks fought them off for five years. Conflicts with Europeans caused the two Muslim empires to get along for a while. Qait Bay levied a tax on the sale of wheat that oppressed the people
Hafsid Ibn al-Lihyani was vizier for Tunis sultan Abu 'Asida (r. 1295-1309) and made a treaty with Aragon in 1301 that gave them half the customs of Catalonian merchants in Tunis. He also made an agreement that whichever ruler of Tunis and Bijaya lived longer would reunite the Hafsid state. However, Bijaya sultan Abul-Baqa's brother rebelled against him in 1311, and so Ibn al-Lihyani invaded Tunisia with Tripolitanian tribes. Ibn al-Lihyani won over Jaime II of Aragon by suggesting he might become a Christian; Ramon Llull taught in Tunis for two years, but he did not convert. In 1317 Abul-Baqa's brother Abu Bakr of Bijaya invaded and took over Tunis the next year, reunifying the Hafsid state, removing Aragonese influence, and ruling until his death in 1347.
Marinid ruler Abu Ya'qub Yusuf besieged Tlemcen for eight years, building a new town; but in May 1307 one of his eunuchs involved in a harem intrigue assassinated him. His army retreated, and the new town was destroyed. After that, the Marinids under Sulayman (r. 1308-1310) and Abu Sa'id 'Uthman (r. 1310-31) left the Zayyanids alone, and Tlemcen prospered. Abu Sa'id had to put down revolts by his son Abu 'Ali, who was governor of Sijilmasa. The Marinids tried to help the Nasrids of Granada fight the Christians in Spain. Zayyanid ruler Abu Hammu I (r. 1308-18) annexed Algiers and established the first madrasa at Tlemcen for renowned Malaki scholars.
Abu Sa'id's son Abul-Hasan (r. 1331-48) defeated his brother Abu 'Ali and exerted greater control over his realm. After a defeat in 1333 at Tarifa, Abul-Hasan invaded Zayyanid territory in 1335 and captured Tlemcen two years later, killing their king Abu Tashfin (r. 1318-37). Abul-Hasan married the sister of Hafsid ruler Abu Bakr, but she died during his defeat in Spain in 1340. The fall of Algeciras to the Castilian army in 1344 ended Marinid efforts in Spain. In 1346 Abul-Hasan arranged to marry Abu Bakr's daughter. After Abu Bakr died, his heir Abul-'Abbas was killed in Tunis by his brother 'Umar, who became sultan. Abu Bakr's chamberlain from an Almohad family joined Abul-Hasan, who then invaded the Hafsids in 1347 and took over Tunis, Tripoli, Qairawan, Susa, and Mahdiya, uniting the Maghrib under his Berber dynasty. Loss of the feudal privileges caused the Arabian chiefs and the Zanata tribes in Tunisia and eastern Algeria to rebel. His son Abu 'Inan also revolted at Tlemcen and declared himself sultan in 1348, defeating at Taza his nephew Mansur, governor of Fez. Abul-Hasan returned to Tlemcen, which had been taken over by the Zayyanids, who defeated his small army. Abul-Hasan fled to Marrakesh, but Abu 'Inan drove him from there into the mountains, where he died in 1351.
Abu 'Inan invaded Zayyanid territory the next year, capturing and killing their sultan Abu Sa'id 'Uthman. Then Abu 'Inan overcame the Sanhaja at Bijaya in 1353, took Constantine in 1356, and occupied Tunis the next year as the Hafsid sultan fled to Mahdiya. However, his troops compelled Abu 'Inan to leave Tunis and return to Morocco. The Marinid vizier wanted the sultan's son Abu Bakr Sa'id to succeed; when 31-year-old Abu 'Inan recovered from an illness, he had him strangled in 1358 so that he could rule for the boy. For the next century of Marinid rule the viziers dominated the sultans. In 1366 another vizier killed Sultan Abu Zayyan, but then Abu Faris 'Abdul-'Aziz (r. 1366-72) had the vizier assassinated. After he died, the Nasrid Muhammad V of Granada interfered in Morocco by supporting the rebellions of two Marinid princes. Increased trade with the Sudan made Tlemcen and Tunis more important. Zayyanid Abu Hammu II (r. 1359-89), who was advised by the historian Ibn Khaldun, had to flee Tlemcen four times from Marinid attacks; after trying to move his capital to Algiers, he eventually submitted to Marinid sovereignty in 1388. After Abu Hammu was deposed by his son Abu Tashfin II (r. 1389-94), Tlemcen declined and was dominated by Aragon.
The Hafsid state was reunified by Abul-'Abbas (r. 1370-94), who ended the hegemony of the Banu Hamza, regained Susa, and pacified the southern tribes by taking Gabis in 1380. He countered piracy from Mayorca by supporting privateers at Bijaya and Mahdiya, and he made peace treaties with Genoa and Venice in 1391. His successor Abu Faris (r. 1394-1434) ruled in Tunis and gained authority over cities such as Tuzar and Tripoli. After his brother died, Hafsid ruler Abu 'Amr 'Uthman (r. 1435-88) overcame a rebellion by his uncle, who was driven out of Bijaya in 1439. Abu 'Amr 'Uthman ruled over the Maghrib for a half century, making the Zayyanids and Wattasids accept his sovereignty. His grandson succeeded but was killed in 1489 after he put to death his relatives. After two other sultans died, Muhammad ibn al-Hasan (r. 1494-1526) managed to keep tribal leaders under control in Tunisia.
After the Portuguese invaded Morocco in 1415, the Nasrids tried to help Marinid ruler Abu Sa'id 'Uthman III (r. 1398-1420) to evict the Portuguese in 1419; but this effort failed. After this sultan was assassinated the next year, Marinid control fell into the hands of the Wattas family. Abu Zakariya Yahya al-Wattasi ruled as regent for the one-year-old sultan 'Abdul-Haqq, who came of age in 1437, the year a Portuguese invasion was defeated. Abu Zakariya Yahya died in 1448 but was succeeded as vizier by another Wattasid until 1457, when Abu Zakariya's son Yahya became vizier. Yahya became unpopular by removing the qadi (judge) of Fez, enabling 'Abdul-Haqq to take control as sultan. After the Portuguese conquered at Qasr al-Kabir in 1458, religious agitation erupted in Fez when the Jewish advisor Harun ended the tax exemptions of the marabouts (Sufis) and sharifs. In 1465 a riot broke out in Fez after a Jewish tax collector mistreated a sharifian woman. Harun and 'Abdul-Haqq were killed, and Muhammad al-Juti was proclaimed ruler. He lasted until 1472. During this era al-Sayyaf led a rebellion against the Marinids for twenty years, because he believed they had poisoned his Sufi teacher al-Jazuli. Wattasid Muhammad al-Shaykh (r. 1472-1505) conquered Fez from the Marinid sharifs; but he surrendered the Atlantic coast of Morocco to the Portuguese invasion. In a 1479 treaty the Wattasids recognized Castile's rights over the Atlantic coast of Africa and the kingdom of Fez.
Africa and Slavery 1500-1800
Ibn Khaldun on History
Ibn Khaldun was born in Tunisia on May 27, 1332 into an aristocratic and political family that had migrated from Seville in 1248. Brought up in the Hafsid court life of Bone and Tunis, he was well educated in Islamic traditions. In 1354 Ibn Khaldun went to serve Marinid sultan Abu 'Inan at Fez, where he became a prominent scholar. He was suspected of disloyalty and imprisoned for 21 months just prior to Abu 'Inan's invasion of Tunisia; he was released when Abu 'Inan died in 1358. Then he served vizier al-Hassan ibn 'Umar and Abu 'Inan's successor Abu Salim. In 1362 Ibn Khaldun went to Granada and helped Ibn al-Ahmar Muhammad V to find refuge at the court of Abu Salim with the renowned scholar Ibn al-Khatib. Two years later he headed a diplomatic mission for Castile king Pedro to negotiate a peace treaty with the Arabs in Seville. He declined a generous offer from Pedro to restore his family estate and in 1365 went to Bougie to serve as prime minister for Hafsid ruler Abu 'Abdallah, who had been his companion in prison. After Abu 'Abdallah fell, Ibn Khaldun raised a force of Arabs for the sultan of Tlemcen.
A few years later young 'Abd-al-'Aziz became the ruler of Fez, defeated the sultan, and arrested Ibn Khaldun for one night. He went into a monastery to do scholarly work but was soon enlisted to serve 'Abd-al-'Aziz for two years. After he died in 1372, Ibn Khaldun was not allowed to move his family to Spain, and they took refuge in Oran. In the next seven years he wrote his History with its lengthy Introduction (Muqaddimah). In 1373 he returned to Tunis but soon moved on to Cairo, where the ruler appointed him a professor and then a judge. In 1384 the wife and five daughters of Ibn Khaldun died in a shipwreck. He made a pilgrimage to Mecca in 1387, was appointed to an academic position in Cairo, and in 1399 resumed being a Maliki judge. He was removed from that high office and reinstated five times. Ibn Khaldun visited Damascus and reported his interviews with the famous Timur. The conqueror requested information on the Maghrib (northwest Africa) from the historian. Ibn Khaldun died in Cairo on March 17, 1406.
After a prayer, Ibn Khaldun in his Introduction (Muqaddimah) suggested that the meaning of history is to explain the causes and origins of events; thus it is rooted in philosophy. He warned against the blind trust of traditions and advised being critical of suspect accounts. He gave the example that Moses could not have had 600,000 Israelites in the desert and explained why. He also doubted the story of Harun al-Rashid and his vizier Ja'far as uncharacteristic of their family traditions. He noted that changes in institutions and customs often result from changes in the rulers, because the common people follow the rulers. He observed how Islamic society was transformed as its intellectual culture developed, because professional men and artisans seek power and authority. He asserted his faith that God guides and helps weak and fallible men.
The first book of Ibn Khaldun's History on the nature of civilization is also considered part of the Muqaddimah. He warned that partisanship for a particular opinion or sect can obscure the critical faculty and allow falsehoods to be accepted. Relying on transmitters is another reason for untruth appearing in histories. Praising powerful and high-ranking people also causes distortions; but the biggest problem is being ignorant of the various conditions in civilization. Ibn Khaldun agreed with jurists that adultery confuses pedigrees, murder destroys the human species, and injustice leads to the destruction of civilization. Humans are distinguished from other animals by their ability to think in sciences and crafts, by the restraining influence of authority, by using various means of making a living cooperatively, and by living in cities for companionship and to satisfy human needs.
Ibn Khaldun noted that a single individual is not capable of providing enough food to live but must cooperate with other human beings. Individuals also need help from their fellows for defense. Manual skill and crafts enable people to procure instruments for defense. Humans also need some authority to restrain their aggressive instincts and prevent injustice; Ibn Khaldun called this mulk (royal authority). Religious law ordained by God and revealed by a human being also helps people restrain themselves. Ibn Khaldun discussed different geographical zones and their influence on human character. Humans by spiritual perception can be inspired, and prophets usually recommend prayer, charity, and chastity. Others he called kahanah (psychics) may be faulty in their perceptions.
In the second chapter Ibn Khaldun discussed Bedouin civilization. Paradoxically, he described them as being more savage but having better habits and more courage than sedentary (hadara) civilizations that follow laws. Governmental authority can prevent injustice except what comes from the ruler himself. Ibn Khaldun observed powerful group feeling in the desert tribes that often enabled them to overcome sedentary civilizations. He described four generations that begins with the builder of the family's glory. In the second generation the son learns by study from the practical experience of his father. The third generation's imitation of that son becomes tradition, which is another inferior step. Finally the fourth generation despises those and destroys what was built. The development of luxuries and a life of ease is often a prelude to the inevitable destruction of the group feeling.
Ibn Khaldun credited group feeling or solidarity ('asabiya) with developing such good qualities as generosity, forgiveness of error, tolerance of the weak, hospitality to guests, support of dependents, maintaining the indigent, patience in adverse situations, faithfully fulfilling obligations, liberal spending to preserve honor, respecting religious law and teachers, and avoiding fraud, cunning, and deceit. Everyone is fairly assigned their proper station, resulting in justice. The ruler is followed, as children imitate their parents, and students learn from their teachers. Ibn Khaldun also noted that the Bedouins live without laws, caring only for the property they take, and that such anarchy ruins civilization.
Ibn Khaldun described the stages he observed in the history of Muslim civilization from the rise of the Bedouin tribes to the powerful 'Abbasid empire, which became luxurious and was replaced by rising tribal groups. In the long third chapter he discussed the Muslim dynasties and their government. Group feeling enables power to be won, because of their "affection and willingness to fight and die for each other."3 Once a royal family has established a dynasty, the group feeling tends to fade, though the religious propaganda usually maintains its power for a while. People are offered divine rewards for cooperating and being virtuous, as laws prohibit evil practices. At first the zealous group feeling enables expansion, but later the empire reaches the limits of what it can conquer militarily. The size of the empire depends on the number of its supporters. The royal family claims all glory for itself; but as its wealth succumbs to luxury it loses its discipline. When its income no longer covers its expenses, the decline begins. High taxes and the army must be reduced. Luxury also brings corruption and eventually the ruination of the ancestral prestige.
Ibn Khaldun defined five stages of a dynasty. First, opposition is successfully overthrown as the royal authority gains power, becomes a model for the people, collects taxes, and defends property with a strong military. In the second stage the ruler claims all authority for himself and his clients but prevents others from sharing it. Third, the fruits of royal authority are enjoyed in leisure and tranquility as property is acquired and more taxes are collected. The ruler becomes famous and is still independent. In the fourth stage the ruler is complacent and follows the traditions established. Finally in the fifth stage the ruler wastes treasures on pleasures and amusements by being too generous to his inner circle. Important matters are handled by those less qualified, and senility sets in. Sometimes the ruler loses control to his vizier. Ibn Khaldun warned that excessive harshness damages royal authority and leads to destruction. Like Aristotle, he recommended a moderate path between extremes. When royal authority becomes tyrannical and unjust, it goes against religious law and will be held accountable on the day of judgment. People are restrained either by the authority of religious laws or by the rational means of political power. Every individual should realize that injustice is forbidden by the authority of the intellect.
Ibn Khaldun observed that at first the caliphate had great religious authority; but when the group feeling declined, it was replaced by royal authority. He described the offices of the mufti (religious jurist), judges, police chief, official witnesses, and market supervisors, who handle lesser cases. The vizier began as the "helper" of the ruler but often gained the greatest power. The main purposes of their government are to protect the community with a military, communicate with distant people, and collect taxes and pay expenses. A doorkeeper was assigned to keep people from disturbing the ruler with requests. The 'Abbasid empire overthrew the Umayyad dynasty, which survived only in Spain, where the doorkeeper (hajib) became the most powerful vizier. The Umayyad ruler was eventually replaced by local governors (reyes de taifas). The 'Abbasid vizier often had more control than the caliph preoccupied with luxuries. They were eventually overcome by the Seljuk Turks, who were overthrown later by the Mongol invasion of Hulagu. The Shi'a dynasty of the 'Ubaydid-Fatimids arose in Egypt. In the Maghrib desert tribes of the Berbers had strong solidarity, and group feeling enabled the Almohad dynasty, the Hafsids, and the Marinids to govern.
Ibn Khaldun wrote that war was caused by a desire for revenge that comes from jealousy or envy. Competing families and tribes often go to war. A second kind of war is the raiding done by desert tribes to gain property. A holy war called by religious authorities is a third kind. The fourth type of war is a dynastic war against those disobeying or attempting to secede. Ibn Khaldun considered the first two kinds unjust but believed that the latter two types were holy and just. He also noted that in luxurious dynasties which are declining, custom duties are increased to meet rising expenses. Ibn Khaldun advised the government against engaging in commercial activities that force farmers and merchants to sell things at low prices to the government and then buy its products for high prices. He explained that this ruins the economy and decreases tax revenues. He noted that the Persians did not allow their rulers to interfere with private property so that capital could grow and be taxed.
When the ruler starts to spend accumulated treasure on efforts to restore his dynasty, the decline begins. As the ruler needs more money, his authority shrinks, because he cannot pay his officials and soldiers. Attacking people's property is the injustice that ruins the dynasty. People stop doing business, and civilization decays. If the ruler gives tax breaks to friends and fiefs to sluggards, they do not produce. Such civilizations are ruined, because those with authority and power are allowed to get away with injustice. Ibn Khaldun complained about the injustice of forced labor also. Religious law may allow cunning in trading, but at least it forbids depriving people of their property illegally. He concluded that political norms are a combination of religious laws and ethical rules.
Then the jurist and philosopher of history quoted a long letter that Tahir ibn al-Husain wrote in 821 to his son, who was appointed a governor in Egypt by al-Ma'mun. The caliph was so impressed by its good advice that he had copies sent to all his officials. His main duties are to be just, to see that rights are observed, and to make sure that families are protected. He advised praying regularly and not being swayed from justice by likes and dislikes. Moderation leads to right guidance and success. Do not be suspicious of those who work for you, but inquire and investigate them if necessary. Work on improving yourself, and love good and just people; yet be friendly with the weak. Control your anger with dignity and mildness. Do not be greedy but invest your treasure in the welfare of the people. Do not justify or support vices. Consult with jurists and the wise. Do not be lenient when judging the noble or wealthy or friends and do not impose excessive fines. Help the poor and indigent. Learn from the affairs of the world and the history of rulers.
Ibn Khaldun considered large cities products of royal authority. Cooperation raises the standard of living and increases prices. Addiction to the crafts that provide elegance leads to diversified luxury. Government bureaucracy and customs duties cause more inflation. People have to increase their profits and spend them, or they fall into poverty. The many desires and pleasures that result from luxury cause immoral habits, including obscenity, fraud, and deceit. Diversifying the pleasures of sex leads to adultery and homosexuality. Individuals by nature seek superiority and domination, and so they compete with each other and form groups that compete.
Ibn Khaldun defined profit as the gain achieved by making a living, whether it be from agriculture, crafts, or commerce. Merchants must buy at low prices and sell at high ones, and so they inevitably use trickery; but it is legal. He observed that rank is useful for securing property because of the respect it gives. Many are obsequious or flatter those with rank in order to succeed in business. In commerce one must dispute, be clever, and persist despite quarrelling. Those who are too proud to stoop to this must depend on their own labor and are often poor, such as poets and artists. He also noted that religious authorities and teachers are usually not wealthy either. Ibn Khaldun did observe that there were many crafts in China, India, among the Turks, and in Christian nations. The most necessary crafts are agriculture, architecture, carpentry, tailoring, and weaving; but he also considered midwifery, writing, book production, music, and medicine to be noble crafts. He believed that most diseases come from food and suggested dieting as the main medicine.
God distinguished humans by giving them the ability to think, and Ibn Khaldun discussed various sciences. He observed that thinking starts with what comes last in the causal chain, and then action begins with what comes first. He described the experimental intellect that is developed by learning from experience. He quoted the famous saying that whoever does not learn from one's parents will have to be educated by time. Prophets can gain knowledge from angels. Teaching is also a craft. Ibn Khaldun believed that theology is based on the oneness of God; but the cause of perceptions in the soul is not known. He described the mystical methods of Sufism.
The approach is based upon
constant application to divine worship,
complete devotion to God,
aversion to the false splendor of the world,
abstinence from the pleasure, property, and position
to which the great mass aspires,
and retirement from the world into solitude for divine worship.4
He lamented that very few people practice the self-scrutiny of the Sufis; even the pious only are obedient.
Ibn Khaldun outlined the intellectual sciences as logic, physics, metaphysics, and the mathematical sciences of geometry, arithmetic, music, and astronomy. He observed that learning arithmetic helped give one the discipline to be truthful. He noted that philosophers learned how to distinguish the spiritual essence from the corporeal perceptions. Ibn Khaldun suggested that scientific subjects be taught gradually. He warned that using severe punishment could harm a student, because it causes bad habits and makes students and servants feel oppressed, inducing them to be lazy, deceitful, and insincere. The same is true of nations that fall under the yoke of tyranny and experience injustice. Ibn Khaldun completed his study of civilization by discussing language and speech. In his conclusion he hoped that other scholars would take up this new science of civilization and improve on what he had started.
Notes
1. "Mutumin Kirki: The Concept of the Good Man in Hausa" by Anthony H. M. Kirk-Greene in African Philosophy: An Anthology, p. 124.
2. "Ubuntu: Reflections of a South African on Our Common Humanity" by Barbara Nussbaum in Reflections, Volume 4, Number 4, p. 26.
3. Ibn Khaldun, The Muqaddimah tr. Franz Rosenthal, Volume 1, p. 313.
4. Ibid., Volume 3, p. 76.
Copyright © 2004 by Sanderson Beck
This chapter has been published in the book Middle East & Africa to 1875.
For ordering information, please click here.
Introduction
Ethics
Prehistoric Cultures
Sumer, Babylon, and Hittites
Egypt
Israel
Assyrian, Babylonian, and Persian Empires
Muhammad and Islamic Conquest
Abbasid, Buyid, and Seljuk Empires 750-1095
Islamic Culture 1095-1300
Ottoman and Persian Empires 1300-1730
Ottoman and Persian Empires 1730-1875
Africa to 1500
Africa and Slavery 1500-1800
Africa and Europeans 1800-1875
Summary and Evaluation
Bibliography
ETHICS OF CIVILIZATION Index
Chronological Index
BECK index