# Khwarazmian Empire

The Khwarazmian Empire (English: /kwəˈræzmiən/), or simply Khwarazm, was a culturally Persianate, Sunni Muslim empire of Turkic mamluk origin. Khwarazmians ruled large parts of present-day Central Asia, Afghanistan, and Iran from 1077 to 1231; first as vassals of the Seljuk Empire and the Qara Khitai (Western Liao dynasty), and from circa 1190 as independent rulers up until the Mongol conquest in 1219–1221.
The date of the founding of the state remains debatable. The dynasty that ruled the empire was founded by Anush Tigin (also known as Gharachai), initially a Turkic slave of the rulers of Gharchistan, later a Mamluk in the service of the Seljuks. However, it was Ala ad-Din Atsiz (r. 1127–1156), descendant of Anush Tigin, who achieved Khwarazm's independence from its neighbors.
The Khwarazmian Empire eventually became the most powerful state in the lands around Persia, defeating the Seljuk Empire and the Ghurid Empire, and even threatening the Abbasid Caliphate. It is estimated that the empire spanned an area of 2.3 to 3.6 million square kilometres. The empire, which was modelled on the preceding Seljuk Empire, was defended by a huge cavalry army composed largely of Kipchak Turks.
The Khwarezmian Empire was the last Turco-Persian Empire before the Mongol invasion of Central Asia. In 1219, the Mongols under their ruler Genghis Khan invaded the Khwarazmian Empire, successfully conquering the whole of it in just two years. The Mongols exploited existing weaknesses and conflicts in the empire, besieging and plundering the richest cities, while putting its citizens to the sword in one of the bloodiest wars in human history.

## History
### Early history

The title Khwarazmshah was introduced in 305 by the founder of the Afrighids and existed until 995. After a short interval, the title was reinstated. During the uprising in Khwarazm in 1017, rebels killed Khwarazmshah Ma'mun II and his wife Khurra-ji, the sister of Ghaznavid sultan Mahmud of Ghazni. In response, Mahmud invaded the region to quell the rebellion. He later installed a new ruler and annexed Khwarazm. As a result, it became a province of the Ghaznavid empire and remained so until 1035.
In 1077, the control of the region, which previously belonged to the Seljuqs from 1042 to 1043, passed into the hands of Anushtegin Gharchai, a Turkic mamluk commander of the Seljuqs. In 1097, the Khwarazm governor of Turkic origin Ekinchi ibn Qochqar declared independence from the Seljuqs and proclaimed himself the shah of Khwarazm. After a short time, however, he was killed by several Seljuq amirs who had risen in revolt. He was replaced with Anush Tigin Gharachai's son, Qutb al-Din Muhammad, by the Seljuqs, who had reconquered the region. Qutb al-Din became the first hereditary Khwarazmshah.

### Rise
#### Anushtegin Gharachai

Anushtegin Gharachai was a Turkic mamluk commander of the Seljuqs and the governor of Khwarazm from approximately 1077 until 1097. He was the first member of his family to rule Khwarazm and the namesake for the dynasty that would rule the province in the 12th and early 13th centuries.
Anushtegin was put in command together with his master Al-Taj Gümüshtegin in 1073 by the Seljuq sultan Malik-Shah I to retake territory in northern Greater Khorasan that the Ghaznavids had seized. He was subsequently made the sultan's tasht-dar (Persian: "keeper of the royal vessels"), and, as the revenues from Khwarazm were used to pay for the expenses incurred by this position, he was made governor of the province. The details of his tenure as governor are unclear. He died by 1097 and the post was briefly given to Ekinchi bin Qochqar before being transferred to his son, Qutb al-Din Muhammad.

#### Ala ad-Din Atsiz

Atsiz gained his position following his father Qutb al-Din's death in 1127. During the early part of his reign, he focused on securing Khwarazm against nomad attacks. In 1138, he rebelled against his suzerain, the Seljuq sultan Ahmad Sanjar, but was defeated in Hazarasp and forced to flee. Sanjar installed his nephew Suleiman Shah as ruler of Khwarazm and returned to Merv. Atsiz returned, however, and Suleiman Shah was unable to hold on to the province. Atsiz then attacked Bukhara, but by 1141 he again submitted to Sanjar, who pardoned him and formally returned control of Khwarazm over to him. The same year that Sanjar pardoned Atsiz, the Kara Khitai under Yelü Dashi defeated the Seljuqs in the Battle of Qatwan (1141), near Samarqand. Atsiz took advantage of the defeat to invade Khorasan, occupying Merv and Nishapur. Yelü Dashi, however, sent a force to plunder Khwarazm, forcing Atsiz to pay an annual tribute. In 1142, Atsiz was expelled from Khorasan by Sanjar, who invaded Khwarazm in the following year and forced Atsiz back into vassalage, although he continued to pay tribute to the Kara Khitai until his death. Sanjar undertook another expedition against Atsïz in 1147 when the latter became rebellious again.
Atsiz was a flexible politician and ruler, and was able to maneuver between the powerful Seljuk Sultan Sanjar and the equally powerful Kara Khitai ruler Yelü Dashi. He continued the land-gathering policy initiated by his predecessors, annexing Jand and Mangyshlak to Khwarazm. Many nomadic tribes were dependent on the Khwarazmshah. Towards the end of his life, Atsiz subordinated the entire northwestern part of Central Asia, and in fact, achieved its independence from its neighbors.

### Territorial expansion
#### Il-Arslan and Tekish

Il-Arslan was the Shah of Khwarazm from 1156 until 1172. He was the son of Atsïz. Initially, Il-Arslan was made governor of Jand, an outpost on the Syr Darya which had recently been reconquered, by his father. In 1156, Atsiz died and Il-Arslan succeeded him as Khwarazmshah. Like his father, he decided to pay tribute to both the Seljuk sultan Sanjar and the Qara Khitai gurkhan.
Sanjar died only a few months after Il-Arslan's ascension, causing Seljuq Khurasan to descend into chaos. This allowed Il-Arslan to effectively break off Seljuk suzerainty, although he remained on friendly terms with Sanjar's successor, Mas'ud. Like his father, Il-Arslan sought to expand his influence in Khurasan.
In 1158, Il-Arslan became involved in the affairs of another Qara Khitai vassal state, the Karakhanids of Samarqand. The Karakhanid Chaghri Khan had been persecuting the Qarluks in his realm, and several Qarluk leaders fled to Khwarazm and sought Il-Arslan's help. He responded by invading the Karakhanid dominions, taking Bukhara and besieging Samarqand, where Chaghri Khan had taken refuge. The latter appealed to both the Turks of the Syr Darya and the Qara Khitai, and the gurkhan sent an army, but its commander hesitated to enter into conflict with the Khwarazmians.
In 1172, the Qara Khitai launched a punitive expedition against Il-Arslan, who had not paid the required annual tribute. The Khwarazmian army was defeated, and Il-Arslan died shortly after. Following his death the state briefly became embroiled in turmoil, as the succession was disputed between his sons Tekish and Sultan Shah. Tekish emerged victorious and subsequently ruled the empire from 1172 to 1200.
Tekish stayed with the expansionist policies of his father Il-Arslan. Despite gaining his throne with the help of the Qara Khitai, he later shook off their suzerainty and repulsed the subsequent Qara Khitai invasion of Khwarazm. Tekish maintained close relations with the Oghuz Turkmens and Turkic Qipchak tribes from the vicinity of the Aral Sea, and recruited them at times for his conquest of Iran. A great number of these Turkmens were still pagan, and they were known in Iran for their barbarism and intense ferocity.
In 1194, Tekish defeated the Seljuq sultan of Hamadan, Toghrul III, in an alliance with Caliph Al-Nasir, and conquered his territories. After the war, he broke with the Caliphate and was on the brink of a war with it until the Caliph accepted him as the sultan of Iran, Khorasan, and Turkestan in 1198. Tekish died of a peritonsillar abscess in 1200. and was succeeded by his son, Ala ad-Din Muhammad. His death triggered spontaneous revolts and widespread massacre of the hated Khwarazmian Turkic soldiers stationed in Iran.

### Maximum expansion and decline
#### Ala al-Din Muhammad

After his father Tekish died, Muhammad succeeded him. Muhammad led the maximum expansion of the Khwarazmian Empire, extinguishing the Western Kara-Khanid Khanate in 1213, and sweeping aside the Ghurids in 1215 whom they vassalized after the assassination of Muhammad Ghuri. The coins of Muhammad were minted in the Kara-Khanid capitals of Uzgen and Samarkand from 1213.
In 1218, a small contingent of Mongols crossed borders in pursuit of an escaped enemy general. Upon successfully retrieving him, Genghis Khan made contact with the Shah. Genghis was looking to open trade relations, but having heard exaggerated reports of the Mongols, the Shah believed this gesture was only a ploy to invade Khwarazm.
Genghis sent emissaries to Khwarazm to emphasize his hope for a trade road. Muhammad II, in turn, had one of his governors (Inalchuq, his uncle) openly accuse the party of spying, seizing their rich goods and arresting the party.
Trying to maintain diplomacy, Genghis sent an envoy of three men to the shah, to give him a chance to disclaim all knowledge of the governor's actions and hand him over to the Mongols for punishment. The shah executed the envoy (again, some sources claim one man was executed, some claim all three were), and then immediately had the Mongol merchant party (Muslim and Mongol alike) put to death and their goods seized. These events led Genghis to retaliate with a force of 100,000 to 150,000 men that crossed the Jaxartes in 1219 and sacked the cities of Samarqand, Bukhara, Otrar, and others. Muhammad's capital city, Gurganj, followed soon after. The Shah Muhammad II of Khwarazm fled and died some weeks later on an island in the Caspian Sea.

#### Turkan Khatun

On the eve of the Mongol invasion, a diarchy developed in the Khwarazmian Empire. Khwarazmshah Muhammad II was considered the absolute ruler, but the influence of his mother Turkan Khatun (Terken Khatun) was also great. Turkan Khatun even had the laqab: "the Ruler of the World" (Khudavand-e Jahaan), and another one for her decrees: "Protector of peace and faith, Turkan the Great, the ruler of women of both worlds." Turkan Khatun had a separate Diwan, separate palace and the orders of the Sultan were not considered to be effective without her signature. This fact, coupled with her conflicts with Muhammad II might have contributed to the impotence of the Khwarazmian Empire in the face of the Mongol onslaught.
In 1221, she was captured by the troops of Genghis Khan and died in poverty in Mongolia.

#### Jalal ad-Din Mingburnu

Jalal al-Din was the last of Khwarazmshahs, who ruled the remnants of the Khwarazmian Empire and northwestern India from 1220 to 1231. He was reportedly the eldest son of Ala ad-Din Muhammad II, while his mother was a Turkmen concubine named Ay Chichek. Due to the low status of Jalal al-Din's mother, his powerful grandmother and Qipchaq princess Terken Khatun refused to support him as heir to the throne, and instead favored his half-brother Uzlagh-Shah, whose mother was also a Qipchaq. Jalal al-Din first appears in historical records in 1215, when Muhammad II divided his empire amongst his sons, giving the southwestern part (part of the former Ghurid Empire) to Jalal al-Din.
He attempted to flee to India, but the Mongols caught up with him before he got there, and he was defeated at the Battle of Indus. He escaped and sought asylum in the Sultanate of Delhi. Iltumish however denied this to him in deference to the relationship with the Abbasid caliphs. Returning to Persia, he gathered an army and re-established a kingdom. He never consolidated his power, however, spending the rest of his days struggling against the Mongols, the Seljuks of Rum, and pretenders to his own throne. He lost his power over Persia in a battle against the Mongols in the Alborz Mountains. Escaping to the Caucasus, he captured Azerbaijan in 1225, setting up his capital at Tabriz. In 1226 he attacked Georgia and sacked Tbilisi. Following on through the Armenian highlands he clashed with the Ayyubids, capturing the town Ahlat along the western shores of Lake Van, which sought the aid of the Seljuq Sultanate of Rûm. Sultan Kayqubad I defeated him at Arzinjan on the Upper Euphrates at the Battle of Yassıçemen in 1230. He escaped to Diyarbakir, while the Mongols conquered Azerbaijan in the ensuing confusion. He was murdered in 1231 by Kurdish highwaymen.

## State apparatus

The head of the central state apparatus (al-Majlis al-Ali al-Fahri at-Taji) of Kharazmshahs was a vizier, the first adviser to the head of state. He was the head of the diwan officials (askhab ad-dawawin), who appointed them and established salaries, pensions (arzak), controlling tax administration and the treasury. The most prominent vizier of the Khwarazmian Empire was Al-Harawi, who built a mosque for the Shafi'is in Merv, a huge madrassah, a mosque and a repository of manuscripts in Gurganj. He died at the hands of the Shia Ismailis.
An important position in the state apparatus of the Khwarazmshahs was also held by the senior or great hajib, who most of the time, was a representative of the Turkic nobility. The hajib reported to the Khwarazmshah on issues related to the shah and his family. The Khwarazmshah could have several hajibs, who carried out the "personal" instructions of the sultan.

## Capital cities

Initially, the main city of the Khwarazmian Empire was Urganch or Gurganj. A prominent Middle Eastern biographer and geographer, Yaqut al-Hamawi, who visited Gurganj in 1219, wrote, "I have not seen a city greater, richer and more beautiful than Gurganj." Al-Qazvini, a Persian physician, astronomer, geographer and writer of Arab ancestry, states:
   Gurganj is a very beautiful city, surrounded by the attention of angels who represent the city in paradise just like a bride in a groom's house. The inhabitants of the capital were skillful artisans, especially the blacksmiths, carpenters and others. Carvers were famous for their products made of ivory and ebony. Workshops for the production of natural silk operated in the city.
The cities of Samarqand, Ghazna and Tabriz also served as the capital of the later Khwarazmian Empire.

## Population

The population of the Kwarazmian Empire consisted mainly of sedentary Iranian and half-nomadic Turkic peoples. The urban population of the empire was concentrated in a relatively small number of (by medieval standards) very large cities as opposed to a huge number of smaller towns. The population of the empire is estimated at 5 million people on the eve of the Mongol invasion in 1220, making it sparse for the large area it covered. Historical demographers Tertius Chandler and Gerald Fox give the following estimations for the populations of the empire's major cities at the beginning of the 13th century, which adds up to at least 520,000 and at most 850,000 people.

## Culture

Although the Khwarazmshahs had a Turkic origin, just as their Seljuq predecessors, they adopted Persian culture, adhered to the Sunni branch of Islam and had their richest and most populous cities in Khorasan. Thus, the Khwarazmshah era had a dual character, reflecting both its Turkic origin and Persian culture.

### Language

During the Khwarazmshah era, Central Asian society was fragmented, unified under one banner only recently. The Khwarazmian military mostly consisted of Turks, while the civilian and administrative element was almost exclusively Persian. The spoken language of the Turkic population of Khwarazm was Kipchak Turkic and Oghuz, the latter being the legacy of the previous masters of the area, Seljuq Turkomans.
However, the dominant language of the era and the one spoken by the majority in the important Khwarazmian cities was Persian. The language of the sedentary diwan was also Persian, and its members had to be well versed in Persian culture, regardless of their ethnic origin. Persian became the official state language of the Khwarazmshahs and served as the language of administration, history, fiction and poetry. The Turkic language was the mother tongue and "home language" of the Anushteginid family, while Arabic served primarily as the language of science, philosophy, and theology.

### Ceramics in the Khwarazmian period

The finely decorated Mina'i ceramics were mainly produced in Kashan, in the decades leading up to the Mongol invasion of Persia in 1219, at a time when the Khwarazmian Empire ruled the area, initially under the suzerainty of the Seljuk Empire, and independently from 1190. Some of the "most iconic" productions of stonepaste vessels can be attributed to the Khwarazmian rulers, after the end of Seljuk domination (the Seljuk Empire itself ended in 1194). In general, it is considered that Mina'i ware was manufactured from the late 12th century and the early 13th century, and dated Mina’i wares range from 1186 to 1224. Extensive lusterware also belongs to this period.
* Horsemen, Mina'i ware, early 13th century, Iran
* Mina'i Bowl with horserider, early 13th century, Iran
* Mina'i Lobed bowl, early 13th century, Iran
* Lusterware bowl with leopard, early 13th century, Kashan, Iran Dated examples are also known.

## Military

It is estimated that the Khwarazmian army, prior to the Mongol invasion, consisted of about 40,000 cavalry, mostly of Turkic origin. Militias existed in Khwarazm's major cities but were of poor quality. With collective populations of around 700,000, the major cities probably had 105,000 to 140,000 healthy males of fighting age in total (15–20% of the population), but only a fraction of these would be part of a formal militia with any notable measure of training and equipment.

### Mercenaries

After the Mongol invasion of the Khwarazmian Empire, many Khwarazmians survived by employing themselves as mercenaries in northern Iraq. Sultan Jalal ad-Din's followers remained loyal to him even after his death in 1231, and raided the Seljuq lands of Jazira and Syria for the next several years, calling themselves the Khwarazmiyya. Ayyubid Sultan as-Salih Ayyub, in Egypt, later hired them against his uncle as-Salih Ismail. The Khwarazmiyya, heading south from Iraq towards Egypt, invaded Crusader-held Jerusalem along the way, on 11 July 1244 (Siege of Jerusalem (1244)). The city's citadel, the Tower of David, surrendered on 23 August, and the Christian population of the city was expelled. This triggered a call from Europe for the Seventh Crusade, but the Crusaders would never again be successful in retaking Jerusalem. After being conquered by the Khwarazmian forces, the city stayed under Muslim control until 1917, when it was taken from the Ottomans by the British.
After taking Jerusalem, the Khwarazmian forces continued south, and on 17 October 1244 fought on the side of the Ayyubids at the Battle of La Forbie, as the Crusaders used to call Harbiyah, a village northeast of Gaza, destroying the remains of the Crusader army there, with some 1,200 knights killed. It was the largest battle involving the Crusaders since the Battle of the Horns of Hattin in 1187.