Zawi ben Ziri

Zawi ben Ziri as-Sinhayi or Al-Mansur Zawi Ibn Ziri Ibn as-Manad Sanhaji (in Arabic: المنصور بن زيري بن الزاوي مانادو), was a chief in the Berber Sanhaja tribe of the Zirid dynasty. He arrived in Spain in 1000(391) in the reign of Almanzor. He took part in the rebellion against the Caliphate of Córdoba and settled in the Cora of Elvira with followers from his Sanhaja tribe. He founded the Taifa of Granada, and started the Zirids of Granada dynasty, so becoming its first Emir (King), reigning between 1013 and 1019.

Early Zirid dynasty
Zawi's father, Ziri ibn Manad (Ziri) was the leader of the Berber Sanhaja tribe, with allegiance to Al-Mansur Billah, leader of the Fatimid Caliphate. Ziri founded the Zirid dynasty in the Maghreb with the permission of Al-Mansur Billah in 944 and built the city of El Achir. During the ongoing revolt of the Zenata tribe against Fatimid rule, Ziri marched against the Zenata forces in 970. Following a bloody battle, the Sanhaja army was routed and Ziri's horse fell on him. With his troops having abandoned the battlefield, Ziri was left stranded amongst the Zenata tribe who cut off his head. A deputation seeking support from El-Hakem al-Mostancer, took Ziri's head to Cordoba, where it was put on display in the market place. Zawi's brother, Buluggin ibn Ziri (Buluggin) was appointed governor of the Maghreb by the Fatimids as they transferred their capital to the newly created Kairouan. The Sanhaja tribe then became responsible for holding back the Spanish Umayyads and their Zanata Berber Allies. The Sanhaja defeated the Umayyad-supported Maghrawa invasion of Morocco in 973, pushing most of the Maghrawa people into central Morocco. Following the death of Buluggin, in 984 the extensive inheritance was divided by his relatives with Buluggin's son Abul-Fat'h al-Mansur ibn Buluggin (al-Mansur) carrying on the Zirid dyrnasty and another son, Hammad ibn Buluggin, taking over the lands of central Maghreb west of Ifrqiya.

All-Mansur entrusted the governorship of Tiaret to his uncle, Abu al-Behar, and that of El Achir to his brother Itouweft. The Zenatas and their Umayyad allies quickly recaptured the places lost to Buluggin, including Fes and Sijilmassa. Uprisings in Ketama, Morocco, were put down with great severity and their perpetrators slain. After reducing offending tribes to submission, Sanhaja officials were put in charge of them. During the reign of Zawi's nephew, al-Mansur (983-995), the Zirid dynasty suffered from internal family tensions as well as a drift away from their Fatimid rulers.



Abu Quatada Nasir ad-Dawla Badis ibn Mansur (Badis), son of al-Mansur, became the next ruler of the Zirid dynasty. Following failed attacks against Badis, in 999 and 1000, Zawi left for Spain with his son, nephews and followers.

Al Andalus
Almanzor,"mayor of the palace"' for the Caliphate of Córdoba in Al-Andalus, eagerly welcomed the refugees as support for his power, through which he planned to establish his domination of the empire and remove the Caliph (Hisham II) of all of his authority. Almanzor also enlisted Zenatas and other Berbers to replace, in Spain, the militia of the Caliph, umayyad troops and contingents of Arab tribes.

The power of the Sanhaja increased to such a degree that they became the main support of Almanzor and his son and successors, Abd al-Malik al-Muzaffar and Abd al-Rahman Sanchuelo. Zawi took a very active part in the war that broke out between the Spanish Muslims and Berber troops. Supported by Sanhaja, Zenata and other Berber troops, Zawi attacked Cordoba to establish Sulayman ibn al-Hakam as their chosen caliph. The Berbers entered Cordoba with their Caliph, indulging in every excess They stripped the people of their property and carried violence and dishonor among the most respectable families. During the pillage of the city, Zawi removed the head of his father, Ziri Ibn Menad, from the top of the citadel where it had been, for returning to his family to be deposited in the tomb which contained the body of his father.

Following the fall of Cordoba, dissension began between the Berbers and the fire of discord spread to all parts of the country. Berber leaders and the great officers of the umayyad empire rushed at will on cities and provinces, while the Sanhaja, already masters of the Elvira campaign, went to seize the city.

Elvira/Granada
The region surrounding what is now known as Granada had been populated since 5500 B.C. and experienced Roman and Visigothic influences. It was originally known as Elibyrge and, by the 1st century A,D., it had become a Roman municipalilty known as lliberri which, by the end of the Visigoth period, had changed to Elvira. The Umayyad conquest of Hispania, starting in 711, had brought large parts of the Iberian Peninsula under Moorish control and established Al-Andalus. In the early 11th century, after a civil war that ended the Caliphate, Zawi established an independent kingdom for himself, the Taifa of Granada, with Elvira/Illiberis as its capital in 1013. Jews were established in another area close to Illiberis, called Gárnata or Gárnata al-yahūd ("Granada of the Jews"), which is the area of the town where the new Taifa was centered. Granada's historical name in the Arabic language was غرناطة (Ġarnāṭah&#x202f;).

Ibn Hazm, with followers of Umayyad pretender Al-Murtada (Abd al-Malik), tried to take Granada from the Zirids, in April 1018, but was heavily defeated. Deeply distressed by the excesses of his countrymen during the civil war, and convinced that these misdeeds would bring down divine vengeance on the perpetrators and would bring the downfall of the empire he had founded, Zawi resolved to abandon Spain. He returned to the Maghreb in 1020, after appointing his nephew Habbus ibn Maksan as his successor.

The Maghreb
Zaw was welcomed back with honour by his great grand nephew, Al-Mu'izz ibn Badis, the ruler of the Zirids in Ifriqiya at that time. It was then that he buried his father's head into the tomb which contained the body.

Aftermath
Habbus al-Muzaffar organised the Taifa and the construction of Granada went ahead during his reign. The Zirids of Granada dynasty reigned until 1238, when Mohammed I ibn Nasr founded the Nasrid dynasty. TheNasrids built the Alhambra and reigned until January 2nd 1492, when the army of the Catholic Monarchs conquered the last Muslim city in the Iberian Peninsula, ousting the last Nasrid king Boabdil.