Merv: History, Science and Learning

Merv is the city which in medieval times dominated the province of Khurasan in today’s Turkmenistan. 

image alt text
Figure 2: Map showing Merv at the heart of trade routes of the Islamic east and central Asia

1. Learning and trade in Merv

Figure 3: Sultan Sanjar mausoleum in Merv, a World Heritage site (Source)

Merv is the city which in medieval times dominated the province of Khurasan in today’s Turkmenistan. Early Islamic geographers recorded a great economy based upon thriving farming and irrigation: a highly organized system of maintenance, a system of irrigation canals and a dam above the city with the supply of water regulated and measured by a metering device.[1]

Under the Abbasids, Merv continued to be the capital of the East. The great prosperity of Merv belongs to the period of 8th to the 13th century.[2] In the latter half of the 10th century, when the geographer Al-Muqaddasi knew Merv, a third part of the suburbs was already in ruins, and the citadel was in no better state; however, in the next century, the citadel gained in size and importance under the Seljuks.[3] By the 11th century, Merv was a great commercial centre of the Oriental type with a bazaar, traversed by two main streets, the centre of the market roofed by a dome, shops for artisans, money changers, goldsmiths, weavers, coppersmiths, and potters. It was an administrative and religious centre, containing mosques, madrasas, palaces, and other buildings.[4] The dome of the mausoleum of Sultan Sanjar, one such place, was of turquoise blue, and could be seen at a distance of a day’s journey away.[5]

One of Merv trademarks was its textile products, silk produced in abundance, and also a school for its study. The region was also famed for its fine cotton and exports, of raw products and manufactured, sent to different lands.[6] Merv was one of the great emporia of the caravan routes between western and eastern Asia, including to China. This meant that gradually trade and urban activities became the source of wealth rather than agriculture.[7]

Yaqut al-Hamawi, the famous geographer (d. 1229), spent two years studying in the many libraries of Merv which he admired.[8] According to him, there were ten wealthy libraries in the city around 1216-1218, two in the chief mosque and the remainder in the madrasas.[9] Yaqut was in Merv, collecting the materials for his great geographical dictionary, for before the Mongol invasion the libraries of Merv were celebrated.[10] “Verily but for the Mongols I would have stayed and lived and died there”, he writes, “and hardly could I tear myself away”.[11]Among others, he mentions the two libraries of the Friday mosque, namely the Aziziyah with 12,000 or so volumes, and the Kamaliyah.[12] There was also the library of Sharaf al-Mulk, in his madrasa, and that of the great Seljuk vizier, Nizam al-Mulk.[13] Among the older libraries were those founded by the Samanids, and one in the college of the Umaydiyah; also that in the Khatuniyah College and that which had belonged to Majd al-Muluk.[14]

Figure 4: Islamic silver Coins. The upper coin, minted in Merv (Turkmenistan) and found in Latvia, was used in a pendant. The lower pendant imitates the shape and inscriptions of an Islamic coin, and bears the Christian symbols of a cross and dove-like bird. (Photo by Universal History Archive/UIG via Getty Images)

2. Scholars of Merv

Figure 5: Exert from the beginning of the edition and translation of Kitab Mizan al-Hikma by Nicholai Khanikoff: “Analysis and Extracts of Kitab Mizan al-Hikma, an Arabic Work on the Water-balance, written by al-Khazini in the Twelfth Century. By the Chevalier N. Khanikoff, Russian Consul-general at Tabriz, Persia.” Journal of the American Oriental Society vol. 6 (1860): pp. 1-128.

Merv produced one of the earliest and greatest scientists of Islam, Ahmad ibn ‘Abdallah al-Marwazi (Marwazi means from Merv) best known as Habash al-Hasib (the calculator), who flourished in Bagdad and died between 864 and 874. He was an astronomer under the Caliphs al-Mamun and al-Muttasim.[15] Habash made observations from 825 to 835 and completed three astronomical tables, the best known being the mumtahin (tested) tables, which may be a collective work of al-Ma’mun’s astronomers, for there was a whole team involved in observation at the court at the time.[16] Apropos of the solar eclipse of 829, Habash gives us the first instance of a determination of time by an altitude (in this case, of the sun); a method which was generally adopted by Muslim astronomers. He seems to have introduced the notion of “shadow,” umbra (versa), equivalent to our tangent, and he compiled a table of such shadows which seems to be the earliest of its kind.[17] One of Habash’s son, called Djafar was also a distinguished astronomer and instrument maker.[18]

A lesser known scholar also from Merv is Al-Saghani, who was a mathematician and astronomer attached to the Buyid observatory in Baghdad.[19] In mathematics, he followed up the work of the Banu Musa, tackling the problem of trisecting the angle, which had preoccupied the ancient Greeks.[20] He was particularly versed in mechanics, and constructed, if he did not invent, the instruments he used for his astronomical observations.[21]

Also coming from Merv is Ibn Ahmad Al-Kharaqi. His name refers probably to the place Kharaq (or Kharak) near Merv and he too was called al-Marwazi. He died in Merv in 1138-1139. He was a mathematician, astronomer and geographer whose works included:

(1) Muntaha al-idrak fi taqsim al-aflak, the highest understanding on the division of spheres, (2) Kitab al-tabsira fi ‘ilm al-hay’a, a shorter astronomical treatise improving on some problems treated in Ibn al-Haytham’s astronomy;

(3) Al-risala al-shamila, the comprehensive treatise, concerning arithmetic; and

(4) Al-risala al- maghribiya (the Magribi treatise). The last two works have not survived.[22]

Al-Kharaqi’s most important work is the Muntaha (the first cited). It is divided into three discourses (maqalas) covering of

(1) the arrangement of spheres (tarkib al-aflak), their movements, etc.;

(2) the shape of the earth, and its subdivision into a part which is inhabited and another which is not, the differences in the ascendents (tali’) and ascensions (matali’) due to geographical positions;

(3) chronology or eras (tawarikh), conjunctions (qiranat), chiefly of Saturn and Jupiter, periods of revolution (adwar)—for example, dawr al-qiran or ‘awd al-qiran (return of the conjunction).[23]

The Tabsira is shorter and covers essentially the same ground; however, it does not contain the elaborate description of the five seas which forms the second chapter of the second part of the Muntaha.[24]

Al-Kharaqi developed the theory according to which the planets are not supported by imaginary circles, but by massive revolving spheres. That theory had been previously expounded by al-Khazin (not to be confounded with al-Khazini), and it found its way into Western Europe through Hebrew and Latin translations of Ibn al-Haytham’s treatise Fi hay’at al-‘alam.[25]

The part of the Muntaha describing the five seas was edited and translated into Latin.[26] There are also details in German by the excellent Wiedemann,[27] on the works of Al-Kharaqi

Another scholar to come from Merv was a historian, his name al-Tamimi al-Sam’ani (that is, of the tribe of Sam’an, a branch of the tribe of Tamim), Taj al-Islam. He was born in Merv in 1113, travelled extensively in Eastern Islam and died in Merv in 1166.[28] He continued the annals of Baghdad begun by al-Khatib (second half of the 11th century). In 1155, he undertook an extensive study of Arabic patronymics (nisba) in eight volumes, which is of great historical geographical interest. Apropos of the names of prominent persons he supplies biographical and topographical explanations, which had been collected by him in the course of his journeys, during which he had met for that very purpose a large number of learned men. His work called Kitab al-ansab is particularly valuable with regard to Persia, Transoxiana, and Central Asia, for which countries it is our principal and often only source of information.[29] The Kitab al-ansab is better known through an abridgment of it, the Lubab, compiled by the renowned historian Ibn al-Athir; or through a further abridgment, the Lubb al-lubab, by al-Suyuti.[30] There is no complete edition of the Ansab, unfortunately, and traces of the work had to be found in Ibn al-Athir and al-Suyuti (second half of the 15th century).[31] There are extracts and details in German on both author and his work by Wüstenfeld.[32]

Figure 6: Extract from Al-Khazini’s geographical table from D.A. King, World-Maps for Finding the Direction and Distance to Mecca (Source)

3. Al-Khazini, the Greatest of Merv’s scientists

Figure 7: Exert of the beginning ofKitab Mizan al-Hikma in the manuscript kept at the Russian National Library in St Petersburg, Khanikoff Collection, Codex 117, folio 1 verso

Possibly, the greatest of all scholars to come from Merv was al-Khazini. Abderahman al-Khazini flourished ca. 1115-ca 1130 at Merv.  Of his life very little is known. A slave (and later a freedman) of Byzantine origin, he was bought by a treasurer (khazin) of the Seljuk court at Merv, called Abu’l-Husayn (or Abu’l-Hasan) Ali ibn Muhammad al-Khazin al- Marwazi, who gave him a good scientific education. Al Khazini subsequently became a mathematical practitioner under the patronage of the Seljuk court. He was very much an ascetic, refusing rewards and handed back 1000 Dinars sent to him by the wife of an Emir. He lived on 3 dinars a year.[33]

His accomplishments in astronomy include his description of his construction of a 24-hour water clock designed for astronomical purposes and for his treatise Al-Zij al-Mu’tabar al-Sinjari (The esteemed Sinjaric tables), giving the positions of the stars for the year 1115/16 at the latitude of Merv. He is also credited with a careful determination of the obliquity of the ecliptic (the band of the zodiac through which the sun apparently moves in its yearly course), but, as Samso remarks, he adopts Al Battani’s value of 23°35′ and concludes (against al-Battani and most of the successive Islamic astronomical tradition) that this parameter is a constant.[34]

Al-Khazini is, however, better known for his book Kitab Mizan al-Hikma (The Book of the Balance of Wisdom),[35] completed in 1121. This encyclopaedic treatise has remained a centrepiece of Muslim physics. Kitab Mizan al-Hikma was written for Sultan Sanjar’s treasury by Al-Khazini, and has survived in four manuscripts, of which three are independent.[36] It studies the hydrostatic balance, its construction and uses and the theories of statics and hydrostatics that lie behind it and other topics. It was partly translated and edited by the Russian envoy Khanikoff in the mid-19th century.[37]

It is important to mention that the first of its eight chapters deal with the theories of centres of gravity, specific gravity and the steelyard theory of his predecessors’ including al-Biruni, Al-Razi, ‘Umar al-Khayam, Thabit ibn Qurra, al Isfizari, and the Greek authors Archimedes and Euclid. Al-Khazini most particularly draws attention to the Greeks’ failure to differentiate clearly between force, mass and weight, and shows awareness of the weight of the air, and of its decrease in density with altitude.[38] By looking at his predecessors’ scientific legacy, al-Khazini provides crucial records of their contributions that could have remained unknown or lost.[39]

A significant part of the book is devoted to hydrostatics, most particularly the determination of specific gravities. Al-Khazini goes to extreme length in describing the equipment necessary to obtain accurate results. His scrupulousness in the preparation of his equipment and materials and in carrying out varied applications of his balances make his book one of the best examples “of rigorous attention to scientific accuracy.”[40] His interest is devoted to the determination of the specific gravities of metals, precious stones and alloys with commercial purposes in mind, so as to determine the purity of various substances and to detect fraud. To determine the specific weight of a specimen, its weight has to be known in air and water, and the volume of air and water displaced by the specimen. Hence, most Muslim researchers used water balances in their experiments. Using the same instrument as al-Biruni, Al-Khazini made repeated trials with several metals and gemstones. He also measured the specific gravities of other substances such as salt, amber and clay, noting whether the substance sank or floated on water.

In all, he records the specific gravities of fifty substances that include precious stones, metals and liquids. The accuracy of such measures is impressive and is offered by Hill, together with modern values. Mieli sees the determination of specific weights by al-Biruni and al-Khazini as some of the most outstanding results obtained by the Muslims in experimental physics.[41]

Figure 8: Colourful diagram of Mizan al-Hikma (the balance of wisdom) designed by Al-Isfizari and Al-Khazini and described in detail by Al-Khazini inKitab Mizan al-Hikma (515 H). This image was displayed in 2001 by Sam Fogg ( as part of an original manuscript that was being exhibited among its holdings. Since then, this manuscript is referred to among the holdings of the University of Pennsylvania: Lawrence J. Schoenberg Database of Manuscripts,MS LJS 386

4. Al-Khazini’s analysis of concepts of physics

Figure 9: Diagram of the balance of wisdom drawn by H. Bauereiss in his dissertation under the direction of E. Wiedeman: Zur Geschichte des spezifischen Gewichtes im Altertum und Mittelalter. Erlangen, 1914, p. 31.

The strict definition for specific weight is given by al-Khazini:

The magnitude of weight of a small body of any substance is in the same ratio to its volume as the magnitude of weight of a larger body (of the same substance) to its volume.’’[42]

As a student of statics and hydrostatics, Al-Khazini borrowed immensely from al-Biruni and al-Isfizari.[43] Al-Khazini also devotes a large space to the description of various balances by his predecessors, but the focus is on what he calls ‘The Balance of Wisdom’. Al-Khazini’s own balance of wisdom is a unique instrument. Although this balance owes much to Muzaffar b. Ismail al-Isfizari, al-Khazini added refinements which made it into an instrument that could perform the most accurate measurements.[44] Such accuracy is due to the length of the beam, the special method of suspension, the fact that the centre of gravity and the axis of oscillation were very close to each other, and of course to the very precise construction of the whole. With this, al-Khazini stated that he obtained an accuracy of 1 in 60,000. His uses of this balance were for varied purposes, from ordinary weighing to taking specific gravities, examining the composition of alloys, changing dirhams to dinars and many other transactions.[45] In all his processes, he moved the scales about until he obtained equilibrium. Al-Khazini in his descriptions gives particular focus to determining the proportions of two constituents in an alloy. Hall states that Al-Khazini’s hydrostatic balance can leave no doubt that “as a maker of scientific instruments he is the greatest of any time.’’[46]

Al-Khazini also made many observations and propositions in his book which constitute some of the foundations of modern physics. Hence, he states:

For each heavy body of a known weight positioned at a certain distance from the centre of the universe, its gravity depends on the remoteness from the centre of the universe. For that reason, the gravities of bodies relate as their distances from the centre of the universe.’’[47]

Al-Khazini was, thus, the first to propose the hypothesis that the gravities of bodies vary depending on their distances from the centre of the earth; this phenomenon was only discovered in the 18th century (six centuries after al-Khazini) after a certain development in the theory of gravitation.[48]

Al-Khazini also found that there was greater density of water when nearer to the centre of the earth more than a century before Roger Bacon (1220-1294) propounded and proved the same hypothesis.[49]

Figure 10: Line drawing of the balance of wisdom or Al-Mizan al-Jami’ (the universal balance) of al-Khazini as it was drawn by the publishers of Kitab Mizan al-Hikma in Hyderabad in 1358H/1940, p. 130.

5. The Mongols and the End of Merv as a Centre of Learning and Trade

Figure 11: Page from the Persian translation of Kitab Mizan al-Hikma.

The Muslims who were already facing the Crusades (1095-1291), suffered further invasions form the east, which devastated their eastern empire. In 1219-1222, Genghis Khan and his hordes flattened the eastern parts of the Muslim land. In just one year the Mongols seized the most populous, the most beautiful, and the best cultivated part of the earth whose inhabitants excelled in character and urbanism;[50] and inflicted all ills on them. An army under Genghis’ son Jagtai, captured and sacked Otrar, whilst another under Genghis himself, burned Bukhara to the ground, raped thousands of women, and massacred 30,000 men.[51] Samarkand and Balkh surrendered but suffered pillage, and wholesale slaughter; so much so that a century later Ibn Battuta (14th century) described these cities as still largely in ruins.[52] Through Khurasan, the Mongols ravaged every town on their march, placing captives in their vanguard, giving them the choice between fighting their fellow men in front or being cut down from behind.[53] Amidst the toll of destruction was that of al-Jurjaniyah dam south of the Aral Sea, which diverted the River Oxus from its course and deprived the Aral Sea of water, causing it to nearly dry out centuries later.[54]

Merv was captured and was burned to the ground; its libraries were consumed in the conflagration. All the glories of the Merv libraries fell prey to the flames, which followed in the wake of the Mongol sack of this great city.[55] Ibn al-Athir, who lived through the events, says that the invaders set on fire the Tomb of Sultan Sanjar with most of the mosques and other public buildings.[56] The city’s inhabitants were allowed to march out through the gates with their treasures, only to be massacred. The total slaughter cost 1.3 million lives.[57] Ibn al-Athir wrote

For several years, I put off reporting this event (of the Mongol invasion). I found it terrifying and felt revulsion at recounting it and therefore hesitated again and again. Who would find it easy to describe the ruin of Islam and the Muslims? … O would that my mother had never borne me, that I had died before and that I were forgotten! Though so many friends urged me to chronicle these events, I still waited. Eventually I came to see that it was no use not complying. The report comprises the story of a… tremendous disaster such as had never happened before, and which struck all the world, though the Muslims above all. If any one were to say that at no time since the creation of man by the Great God had the world experienced anything like it, he would only be telling the truth. In fact nothing comparable is reported in past chronicles… Those they (the Mongols) massacred, for a single city whose inhabitants were murdered numbered more than all the Israelites together. It may well be that the world from now until its end… will not experience the like of it again, apart perhaps from Gog and Magog. Dadjal will at least spare those who adhere to him, and will only destroy his adversaries. These (the Mongols), however, spared none. They killed women, men and children, ripped open the bodies of the pregnant and slaughtered the unborn. Truly: we belong to God and shall return to Him; only with Him is strength and power.’[58]

When Merv was visited in the 14th century by Ibn Battuta, it was still in great ruin.[59] Mustawli also saw that it was still largely in ruins, and the sands had begun encroaching.[60]  Hafiz Abru adds that the Mongols had broken down all the great dams and dykes, which under the Seljuks had grown in number, and been carefully maintained, in order thus to regulate the irrigation of the oasis; now everything had lapsed into a desert swamp.[61]

However, some Western historians praise the Mongols. Thus, Saunders, tells us:

`The Mongol massacres, genocide, perhaps arose from mixed motives of military advantage and superstitious fears. By massacres they hastened the surrender of other places and speeded the conquest. However merciless their rage for destruction, after a decent interval, they commonly permitted the rebuilding of the cities they had burnt and ruined.’[62]

Rebuilding may have been permitted but many devastated places were still in ruins centuries later. Wiet et al. tell us that Genghis Khan’s

`means were still limited, but he had on his side the moderation and the deliberation of a great leader and, above all, a magnificent army, the exploits of whose horsemen, incomparable bowmen and seasoned warriors take their place in history and legend.’[63]

Wiet and his group also make the point that:

`What legend portrays so exultantly, however, the chronicles reveal as a grievous ordeal for the city-dwellers of Asia. The Mongols, lagging behind the other barbarians of Asia in their development, did not know what to do with the towns. On the principle that only terror is profitable, only the steppe livable and only the way to heaven valuable, they pillaged, destroyed and massacred. The list of their conquests is a litany of disaster: the marvellous cities of Bukhara, Samarkand, Nishapur, Baghdad and countless others were razed to the ground and their inhabitants slain.’[64]

They further argue that:

`The sword, however, fell only on those who offered resistance. Those who welcomed the Mongol as a liberator… escaped the terror.’[65]

First and foremost, their claim is a fallacy, for most places taken by the Mongols offered no resistance whatsoever (see D’Ohsson, for instance). Secondly it is a contradiction to say that only those who fought were slain and then to state that all the inhabitants, including women and children, were slaughtered.

Figure 12-13: Two views of the balance of wisdom as reconstructed by H. Bauereiss and F. Keller (1908-1911), rediscovered by M. Abattouy and Professor Jürgen Renn (director of the Max Planck Institute for the History of Science, Berlin) in the Deutsches Museum in Munich in 2002 (item invent. Nr. 31116). © Max Planck Institut für Wissenschaftgeschichte, 2002. See Mohammed Abattouy,Muslim Heritage in Mechanics and Technology: Outline of a Program for Future Research.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s