text: ahmad ibn tulun ahmad ibn tulun ( arabic : أحمد بن , dmg aḥmad ibn ; ca . 20 september 835 – 10 may 884 ) was the founder of the tulunid dynasty that ruled egypt and syria between 868 and 905 . originally a turkic slave - soldier , in 868 ibn tulun was sent to egypt as governor by the abbasid caliph . within four years ibn tulun had established himself as a virtually independent ruler by evicting the caliphal fiscal agent , ibn al - mudabbir , taking over control of egypt 's finances , and establishing a large military force personally loyal to himself . this process was facilitated by the volatile political situation in the abbasid court and the preoccupation of the abbasid regent , al - muwaffaq , with the wars against the saffarids and the zanj rebellion . ibn tulun also took care to establish an efficient administration in egypt . after reforms to the tax system , repairs to the irrigation system , and other measures , the annual tax yield grew markedly . as a symbol of his new regime , he built a new capital , al - qata 'i , north of the old capital fustat . after 875 / 6 he entered into open conflict with al - muwaffaq , who tried unsuccessfully to unseat him . in 878 , with the support of al - muwaffaq 's brother , caliph al - mu 'tamid , ibn tulun took over the governance of syria as well as the frontier districts with the byzantine empire , although control of tarsus in particular proved tenuous . during his absence in syria , his eldest son and deputy , abbas , tried to usurp power in egypt , leading to the imprisonment of abbas and the nomination of ibn tulun 's second son , khumarawayh , as his heir . the defection in 882 of a senior commander , lu 'lu ' , to al - muwaffaq , and the defection of tarsus , forced ibn tulun to return to syria . now virtually powerless , al - mu 'tamid tried to escape from his brother 's control to ibn tulun 's domains but was captured by al - muwaffaq 's agents , and ibn tulun convened an assembly of jurists at damascus to denounce al - muwaffaq as a usurper . his attempt in autumn 883 to bring tarsus to heel failed , and he fell sick . returning to egypt , he died in may 884 and was succeeded by khumarawayh . ibn tulun stands out as the first governor of a major province of the abbasid caliphate to not only establish himself as its master independently of the abbasid court , but to also pass power on to his son . he was thus also the first ruler since the ptolemaic pharaohs to make egypt an independent political power again , with a sphere of influence encompassing syria and parts of the maghreb , setting the tone for later egypt - based regimes like the ikhshidids and the fatimids . life early life and career ahmad ibn tulun was born on the 23rd day of the month of ramadan 220 ah ( 20 september 835 ) or slightly later , probably in baghdad . his father , tulun , was a turk from a locality known in arabic sources as or [ o ] , i.e. the uyghur confederation . in the year 815 / 6 ( 200 ah ) tulun was taken captive along with other turks , and sent as part of the tribute of the samanid governor of bukhara ibn asad to the caliph al - ma 'mun ( reigned 813 – 833 ) , who at the time resided in khurasan . after al - ma 'mun returned to baghdad in 819 , these turkish slaves were formed into a guard corps of slave soldiers ( ghilmān , sing. ) entrusted to al - ma 'mun 's brother and eventual successor , al - mu 'tasim ( r . 833 – 842 ) . tulun did well for himself , eventually coming to command the caliph 's private guard . ahmad 's mother , called qasim , was one of his father 's slaves . in 854 / 5 , tulun died , and qasim is commonly held to have married a second time , to the turkish general or bakbak . this report , however , does not appear in ibn al - daya or al - balawi , and may be spurious . according to al - balawi , after his father 's death ahmad came under the tutelage by , a close companion of tulun , who had been taken captive alongside him . at his deathbed , tulun urged his friend to take care of his wife and son , and bakbak thereafter treated the young ahmad as his own son . the young ahmad ibn tulun received a thorough education , involving military training at the new abbasid capital of samarra and studies in islamic theology at tarsus , acquiring a reputation not only for his knowledge but also for his pious and ascetic way of life . he became popular among his fellow turks , who would confide secrets and entrust their money and even their women to him . while at tarsus , ibn tulun fought in the frontier wars with the byzantine empire . there he also met another senior turkish leader , yarjukh , whose daughter , variously given as or khatun , became his first wife and the mother of his eldest son , abbas , and his daughter fatimah . on one occasion , while returning to samarra , he saved a caravan bearing a caliphal envoy returning from constantinople from a bedouin raiding party , and accompanied it to samarra . this act gained him the favour of caliph al - musta 'in ( r . 862 – 866 ) , as well as a thousand gold dinars and the hand of the slave , the mother of his second son , khumarawayh . when the caliph abdicated and went into exile at wasit in 866 , he chose ibn tulun to be his guard . , the mother of the new caliph , al - mu 'tazz ( r . 866 – 869 ) , schemed to remove the deposed al - musta 'in , and offered ibn tulun the governorship of wasit if he would murder him . ibn tulun refused and was replaced by another , who carried out the deed . ibn tulun himself played no part in the assassination , but gave his master a burial and returned to samarra . governor of egypt already under caliph al - mu 'tasim , senior turkish leaders began being appointed as governors of provinces of the caliphate as a form of appanage . thereby they secured immediate access to the province 's tax revenue for themselves and their troops , bypassing the civilian bureaucracy . the turkish generals usually remained close to the centre of power in samarra , sending deputies to govern in their name . thus when al - mu 'tazz gave bakbak charge of egypt in 868 , bakbak in turn sent his stepson ahmad as his lieutenant and resident governor . ahmad ibn tulun entered egypt on 27 august 868 , and the egyptian capital , fustat , on 15 september . ibn tulun 's position after his appointment was far from undisputed within his province . as governor of fustat he oversaw the province 's garrison and was the head of the muslim community as recognized in his title of " overseer of the army and the friday prayer " ( wāli al - - ) , but the fiscal administration , in particular the collection of the land tax ( kharāj ) was in the hands of the powerful veteran administrator ibn al - mudabbir . the latter had been appointed as fiscal agent ( ʿāmil ) already since ca . 861 , and had rapidly become the most hated man in the country as he doubled the taxes and imposed new ones on muslims and non - muslims alike . ibn tulun quickly signalled his intention to be sole master of his province : on his arrival at fustat , when both ibn al - mudabbir and , the head of the postal service ( ) and of correspondence with the caliphal government , came out to meet him with a gift of 10 , 000 dinars , he refused to accept it . for the next four years , ibn tulun and his rivals fought via their emissaries and relatives at the caliphal court in samarra to neutralize each other ; in the end , ibn tulun managed to secure ibn al - mudabbir 's transfer to syria in july 871 , and assumed collection of the kharāj himself . at the same time , ibn tulun also secured the dismissal of , who died shortly after . thus by 872 ibn tulun had assumed control of all branches of the administration in egypt , becoming de facto independent of the abbasid central government . at the time of ibn tulun 's appointment , egypt was undergoing a transformative process . in 834 its early muslim elite , the arab settler families ( jund ) of fustat , lost their privileges and government pay , and power passed to officials sent by the abbasid court . at about the same time , for the first time the muslim population began surpassing the coptic christians in numbers , and the rural districts were increasingly subject to both arabization and islamization . the rapidity of this process , and the influx of settlers after the discovery of gold and emerald mines at aswan , meant that upper egypt in particular was only superficially controlled by the local governor . furthermore , the persistence of internecine strife and turmoil at the heart of the abbasid state — the so - called " anarchy at samarra " — led to the appearance of millennialist revolutionary movements in the province under a series of alid pretenders . one of them was ibn al - sufi , a descendant of ali 's son umar , who rebelled in late 869 and massacred the populace of esna . in winter 870 he defeated an army sent against him by ibn tulun , but was driven to the oases of the desert in spring . he remained there until he was defeated in a struggle with another regional strongman , abu abdallah ibn abd al - hamid al - umari in 872 , fleeing to mecca . there he was seized and imprisoned for a while by ibn tulun . one of his followers , abu ruh , rebelled in the oases in 873 / 4 and was successful enough for ibn tulun to offer him an amnesty . ibn al - sufi 's , al - umari , was another descendant of ali who had created an autonomous principality around the gold mines , defeating the forces sent against him . another revolt broke out in 874 / 5 by the governor of barqa , muhammad ibn al - faraj al - farghani . ibn tulun tried to reconcile him at first but was eventually forced to send an army to besiege and storm the city , although the reprisals were limited . the re - imposition of his authority over barqa however led to the strengthening of ties with ifriqiya to the west , including , according to ibn al - athir , the erection of a series of lighthouses and messaging beacons along the coast . in the meantime , in palestine , the local governor , isa ibn al - shaykh al - shaybani , had used the anarchy in iraq to set up a quasi - independent bedouin regime , intercepting the tax caravans from egypt and threatening damascus . when caliph al - muhtadi ascended the throne in july 869 , he offered a general amnesty , and wrote to ibn al - shaykh , offering a pardon in exchange for him handing over the treasure he had wrongfully appropriated . when ibn al - shaykh refused , the caliph ordered ibn tulun to march against him . ibn tulun complied and began a mass purchase of black african ( ) and greek ( ) slaves to form an army over the winter of 869 / 70 , but no sooner had he arrived at al - arish with his army in summer 870 than orders came to turn back . ibn al - shaykh 's revolt was crushed soon after by another turkish soldier , amajur al - turki , who continued to govern syria for the abbasids until his death in 878 . this episode was nevertheless of major importance as it allowed ibn tulun to recruit an army of his own with caliphal sanction . the tulunid army , which eventually grew to reportedly 100 , 000 men — other sources give a breakdown of 24 , 000 turkish ghilmān and 42 , 000 black african and greek slaves , as well as a mercenary corps composed mostly of greeks — became the foundation of ibn tulun 's power and independence . for his personal protection , ibn tulun reportedly employed a corps of ghilmān from ghur . ibn tulun 's stepfather bakbak was murdered in 869 / 70 , but luckily for him in the summer of 871 the supervision of egypt passed to his father - in - law yarjukh . yarjukh not only confirmed ibn tulun in his post , but in addition conferred to him the authority over alexandria and barqa . in 873 , ibn tulun entrusted the government of alexandria to his eldest son , abbas . ibn tulun 's growing power was manifested in the establishment of a new palace city to the northeast of fustat , called al - qata 'i , in 870 . the project was a conscious emulation of , and rival to , the abbasid capital samarra . just like samarra , the new city was designed as quarters for ibn tulun 's new army with the aim of reducing frictions with the urban populace of fustat . each unit received an allotment or ward ( whence the city 's name ) to settle , after which the ward was named . the new city 's centrepiece was the mosque of ibn tulun , which was built in 878 – 880 under the supervision of the mesopotamian christian architect ibn katib al - farghani . a royal palace adjoined the mosque , and the rest of the city was laid out around them . beside government buildings , it included markets , a hospital ( al - ) that provided services free of charge , and a hippodrome . nevertheless , ibn tulun himself preferred to reside in the coptic monastery of qusayr outside fustat . ibn tulun 's new regime the administration of egypt was already well developed before ibn tulun 's arrival , with a number of departments ( ) responsible for the collection of the land tax , the supervision of the post , the public granaries ( dīwān al - ) , the nile delta lands ( dīwān al - ) , and possibly a privy purse ( dīwān al - ) for the governor 's personal use . a chancery ( dīwān al - ) possibly also already existed , but it may have been first established under ibn tulun , when he remodelled the egyptian administration after the abbasid central government . most of the officials employed by ibn tulun were like him trained in the caliphal court at samarra . ibn tulun 's chancellor was the capable abu ja 'far muhammad ibn abd al - kan ( died 891 ) , while other important positions in the administration were held by the four al - muhajir brothers and ibn al - daya . al - balawi also reports several anecdotes about ibn tulun 's extensive use of spies and his own ability to uncover spies sent against him , and claims that the chancery was established so that ibn tulun could check up on every piece of correspondence with the caliphal court . unsurprisingly , given his own origins as a slave soldier , ibn tulun 's regime was in many ways typical of the " system " that became one of the two main paradigms of islamic polities in the 9th and 10th centuries , as the abbasid caliphate fragmented and new dynasties emerged . these regimes were based on the power of a regular army composed of the ghilmān , but in turn , according to hugh n. kennedy , " the paying of the troops was the major preoccupation of government " . it is therefore in the context of the increased financial requirements that in 879 , the supervision of the finances in egypt and syria passed to abu bakr ahmad ibn ibrahim al - madhara 'i , the founder of the al - madhara 'i bureaucratic dynasty that dominated the fiscal apparatus of egypt for the next 70 years . although , as zaky m. hassan notes , " fragmentary evidence does not permit a thorough assessment of tulunid economic and financial policies " , it appears that the peace and security provided by the tulunid regime , the establishment of an efficient administration , and repairs and expansions to the irrigation system , coupled with a consistently high level of nile floods , resulted in a major increase in revenue . by the time of ibn tulun 's death , income from the land tax alone had risen from 800 , 000 dinars under ibn al - mudabbir to the sum of 4 . 3 million dinars , and ibn tulun bequeathed his successor a fiscal reserve of ten million dinars . crucial to this was the reform of the tax assessment and collection system , including the introduction of tax farming — which at the same time led to the rise of a new landholding class . additional revenue was collected from commercial activities , most notably textiles and in particular linen . ibn tulun 's regime was highly centralized , but also featured " consistent attempts to win the backing of egypt 's commercial , religious and social élite " , according to zaky m. hassan . thus the wealthy merchant ma al - jawhar functioned both as ibn tulun 's personal financier and as the head of an informal intelligence network through his contacts in iraq . a further " notable characteristic " of ibn tulun 's rule , according to thierry bianquis , was " the quality of relations it maintained with christians and jews " ; according to a letter by the patriarch of jerusalem , elias iii , when he took over palestine , he appointed a christian as governor of jerusalem , and possibly even of the provincial capital , ramla , thereby putting an end to the persecution of christians and allowing the renovation of churches . expansion into syria in the early 870s , a major change took place in the abbasid government , as the abbasid prince al - muwaffaq emerged as the de facto regent of the empire , sidelining his brother , caliph al - mu 'tamid ( r . 870 – 892 ) . officially , al - muwaffaq controlled the eastern half of the caliphate , while al - mu 'tamid 's son and first heir al - mufawwad controlled the western , with the aid of the turkish general musa ibn bugha . in reality al - muwaffaq held the actual reins of power . al - muwaffaq however was preoccupied with the more immediate threats to the abbasid government presented by the rise of the saffarids in the east and by the zanj rebellion in iraq itself , as well as with keeping in check the turkish troops and managing the internal tensions of the caliphal government . this gave ibn tulun the necessary space to consolidate his own position in egypt . ibn tulun kept himself out of the zanj conflict , and even refused to recognize al - mufawwad as his suzerain , who in turn did not confirm him in his position . open conflict between ibn tulun and al - muwaffaq broke out in 875 / 6 , on the occasion of a large remittance of revenue to the central government . counting on the rivalry between the caliph and his over - mighty brother to maintain his own position , ibn tulun forwarded a larger share of the taxes to al - mu 'tamid instead of al - muwaffaq : 2 . 2 million dinars went to the caliph and only 1 . 2 million dinars to his brother . al - muwaffaq , who in his fight against the zanj considered himself entitled to the major share of the provincial revenues , was angered by this , and by the implied machinations between ibn tulun and his brother . al - muwaffaq sought a volunteer to replace him , but all the officials in baghdad had been bought off by ibn tulun and refused . al - muwaffaq sent a letter to the egyptian ruler demanding his resignation , which the latter predictably refused . both sides geared for war . ibn tulun created a fleet and fortified his borders and ports , including alexandria , and a new fortress on rawda island to protect fustat . al - muwaffaq nominated musa ibn bugha as governor of egypt and sent him with troops to syria . in the event , due to a combination of lack of pay and supplies for the troops , and the fear generated by ibn tulun 's army , musa never got further than al - raqqah . after ten months of inaction and a rebellion by his troops , musa returned to iraq . in a public gesture of support for al - mu 'tamid and opposition to al - muwaffaq , ibn tulun would assume the title of " servant of the commander of the faithful " ( amīr al - ) in 878 . ibn tulun now seized the initiative . having served in his youth in the border wars with the byzantine empire at tarsus , he now requested to be conferred the command of the frontier districts of cilicia ( the ) . al - muwaffaq initially refused , but following the byzantine successes of the previous years al - mu 'tamid prevailed upon his brother and in 877 / 8 ibn tulun received responsibility for the entirety of syria and the cilician frontier . ibn tulun marched into syria in person . he received the submission of the son of amajur , who had recently died , whom he appointed governor at ramla , and proceeded to take possession of damascus , homs , hama , and aleppo . at damascus ibn tulun encountered his old rival ibn al - mudabbir , who since his eviction from egypt had served as amajur 's ʿāmil for palestine and damascus . ibn al - mudabbir was fined 600 , 000 dinars and thrown into prison , where he died in 883 / 4 . in the rest of the provincial administration , however , he largely left the people who had served under amajur in place . only the governor of aleppo , sima al - tawil , resisted , and fled to antioch . ibn tulun laid siege to the city until sima was killed , reportedly by a local woman . he then continued on to tarsus , where he began preparing for a campaign against the byzantines . the presence of his numerous soldiers , however , led to a rapid rise in prices , causing great hostility among the tarsians , who demanded that he either leave or reduce his army . at this juncture , news arrived from egypt that his son abbas , whom he had left as his regent , was preparing to usurp his position under the influence of his entourage . ibn tulun hastily withdrew from tarsus , but as more information about the situation in egypt began to arrive , clarifying that abbas posed no real threat , ibn tulun decided to spend more time in syria and consolidate his authority . he redressed the injustices of sima , installed troops in aleppo ( under his ghulam lu 'lu ' ) and harran , secured the co - operation of the banu kilab tribe and their leader ibn al - abbas , and captured the rebel musa ibn . at some point after his takeover of syria , ibn tulun ordered the refortification of akka , a task undertaken by abu bakr al - banna , the grandfather of al - muqaddasi , who provides a detailed description of the work . only then , in april 879 , did ibn tulun return to egypt . abbas fled west with his supporters , and from barqa tried to take over ifriqiya . defeated by the ifriqiyans ( probably in the winter of 880 – 881 ) , he retreated back east to alexandria , where he was finally confronted and captured by ibn tulun 's forces . after being publicly paraded seated on a mule , ibn tulun ordered his son to execute or mutilate his companions , who had driven him to rebel . ibn tulun reportedly secretly hoped that his son would refuse to do such a dishonourable act , but he agreed . weeping , ibn tulun had abbas whipped and imprisoned . he then named his second son , khumarawayh , as his heir - apparent . final years and death following his return from syria , ibn tulun added his own name to coins issued by the mints under his control , along with those of the caliph and heir apparent , al - mufawwad . in the autumn of 882 , the tulunid general lu 'lu ' defected to the abbasids . at the same time , the tulunid - appointed governor of tarsus and the died , and his replacement , yazaman al - khadim , with popular backing , refused to acknowledge tulunid rule . ibn tulun immediately left in person for syria — taking the chained abbas with him as a precaution — and headed for tarsus . at damascus , he received a message from al - mu 'tamid informing him that the by now nearly powerless caliph had escaped samarra and was heading for syria . taking custody of al - mu 'tamid would have immensely boosted ibn tulun 's standing : not only would the sole source of political legitimacy in the muslim world reside under his control , but he would also be able to pose as the " rescuer " of the caliph . ibn tulun therefore decided to halt and await al - mu 'tamid 's arrival . in the event , however , the caliph was overtaken at al - haditha on the euphrates by the governor of mosul , ishaq ibn kundaj , who defeated the caliphal escort and brought him back to samarra ( february 883 ) and thence south to wasit , where al - muwaffaq could better control him . this opened anew the rift between the two rulers : al - muwaffaq nominated ishaq ibn kundaj as governor of egypt and syria — in reality a largely symbolic appointment — while ibn tulun organized an assembly of religious jurists at damascus which denounced al - muwaffaq as a usurper , condemned his maltreatment of the caliph , declared his place in the succession as void , and called for a jihād against him . only three participants , including the chief of egypt , bakkar ibn qutayba , refused to pronounce the call for jihād publicly . ibn tulun had his rival duly denounced in sermons in the mosques across the tulunid domains , while the abbasid regent responded in kind with a ritual denunciation of ibn tulun . despite the belligerent rhetoric , however , neither made moves to confront the other militarily . after his failure to take control of the caliph , ibn tulun turned on tarsus . he appointed abdallah ibn fath in lu 'lu 's place in aleppo , and marched in person to cilicia . the egyptian ruler laid siege to tarsus in autumn 883 , but yazaman diverted the local river , inundating the tulunid camp and forcing ibn tulun to retreat . ibn tulun fell ill on his return to egypt , and was carried to fustat on a wheeled vehicle . in the same year , a campaign to take over the two holy cities of islam , mecca and medina , also failed . back in egypt , he ordered bakkar to be arrested and replaced him with muhammad ibn al - . a thorough examination of bakkar 's accounts while head of the charitable endowments , however , revealed no . although ibn tulun ordered him released , the elderly and sick refused to leave his cell . at the same time , the illness of ibn tulun himself worsened . " muslims , christians and jews , including women and children , converged separately upon the flank of the muqattam to implore god to save him " , as bianquis writes , but ibn tulun died at fustat on 10 may 884 and was interred on the slopes of the muqattam . according to al - balawi , ibn tulun left his heir 24 , 000 servants , 7 , 000 men and 7 , 000 horses , 3 , 000 camels , 1 , 000 mules , 350 ceremonial horses , and 200 fully equipped warships . at ibn tulun 's death , khumarawayh , with the backing of the tulunid elites , succeeded without opposition . ibn tulun bequeathed his heir " with a seasoned military , a stable economy , and a coterie of experienced commanders and bureaucrats " . khumarawayh was able to preserve his authority against the abbasid attempt to overthrow him at the battle of tawahin and even made additional territorial gains , but his extravagant spending exhausted the treasury , and his assassination in 896 began the rapid decline of the tulunid regime . internal strife sapped tulunid power . khumarawayh 's son jaysh was a drunkard who executed his uncle , mudar ibn ahmad ibn tulun ; he was deposed after only a few months and replaced by his brother harun ibn khumarawayh . harun too was a weak ruler , and although a revolt by his uncle rabi 'ah in alexandria was suppressed , the tulunids were unable to confront the attacks of the qarmatians who began at the same time . in addition , many commanders defected to the abbasids , whose power revived under the capable leadership of al - muwaffaq 's son , caliph al - mu 'tadid ( r . 892 – 902 ) . finally , in december 904 , two other sons of ibn tulun , ali and shayban , murdered their nephew and assumed control of the tulunid state . far from halting the decline , this event alienated key commanders in syria and led to the rapid and relatively unopposed reconquest of syria and egypt by the abbasids under muhammad ibn sulayman al - katib , who entered fustat in january 905 . with the exception of the great mosque of ibn tulun , the victorious abbasid troops pillaged al - qata 'i and razed it to the ground . offspring according to al - balawi , from his various wives and concubines , ibn tulun had 33 children , 17 sons and 16 daughters . the only modern edition of al - balawi provides the following list : male children : abū al - al - ( the eldest ) , abū al - jaysh , abū al - , abū al - , abū al - , abū ' , abū , abū al - , abū , abū kindah , abū aghlab , abū , abū al - , abū al - , abū al - faraj , abū muhammad , and abū al - . female children ( note that only 15 names are listed ) : , , ( unreadable ) , , , , maryam , , umm al - , , , , , , and . legacy despite the downfall of his dynasty , ibn tulun 's rule was a seminal event not only for egypt , but for the entire islamic world . for egypt itself , his reign marks a turning point as the country for the first time since the pharaohs ceased being a passive province subject to a foreign imperial power , and became once again a centre of power in its own right . the new realm he forged , encompassing egypt and syria as well as the jazira and cilicia , and to a lesser extent the eastern parts of the maghreb , established a new political zone separated from the islamic lands further east , restoring in a fashion the frontier that had existed between the byzantine and sassanid persian realms in antiquity . egypt was the basis of ibn tulun 's power ; he paid particular attention to restoring its economy , as well as establishing an autonomous bureaucracy , army , and navy . these policies were continued by later egypt - based regimes , the ikhshidids ( 935 – 969 ) and eventually the fatimids ( 969 – 1171 ) , who likewise used egypt 's wealth to establish control over parts or even most of syria . indeed , as thierry bianquis remarks , the territory ruled by ibn tulun in syria was remarkably similar to that controlled by the later , similarly egypt - based regimes of saladin and the mamluk sultanate . ibn tulun 's relations with and quest for autonomy from the abbasids is a " central problem of tulunid history " . modern scholars see in ibn tulun 's policies a " careful balancing act " ( matthew s. gordon ) and notice that he never fully severed himself from the caliphate , remaining conspicuously loyal to the person of al - mu 'tamid , who , after all , was a powerless figurehead . nevertheless , the move towards increasing autonomy is evident throughout his reign . his relations with the abbasid government were dominated by his conflict with al - muwaffaq , resulting from the latter 's attempts to establish control over egypt — whose wealth was needed during the costly war against the zanj — and prevent the further rise of ibn tulun . in a certain sense , writes matthew gordon , many of ibn tulun 's measures " were as much the means by which imperial interests were protected against the ambitions of al - muwaffaq and his ( largely turkish ) military coterie in iraq as they were efforts to secure tulunid authority " . given that ibn tulun at least twice ( in 871 and 875 / 6 ) remitted huge sums to the caliphal treasury , it remains an open question whether without the conflict with al - muwaffaq , this would have been a more regular occurrence . ibn tulun 's role in the wider islamic history is as the herald of the abbasid caliphate 's disintegration and the rise of local dynasties . this became particularly evident with the succession of khumarawayh : as thierry bianquis explains , " this was the first time in abbasid history with regard to the government of so large and rich a territory , that a wāli , whose legitimacy derived from the caliph who had designated him , was succeeded openly by an amīr who claimed his legitimacy by inheritance " . thus zaky m. hassan calls ibn tulun a " typical example of the turkish slaves who from the time of harun al - rashid were enlisted in the private service of the caliph and the principal officers of state , and whose ambition and spirit of intrigue and independence [ eventually made ] them the real masters of islam " .