Babur (reign 1526 to 1530) was the founder of the Mughal Empire and the author of the much-celebrated Baburnama, the first Islamic autobiography in the true sense of the word. He was related to two formidable warrior-emperors of the Eurasian steppes: he was a fifth-generation descendant of Timur (reign 1370 to 1405) on his father's side, and a fifteenth-generation descendant of Genghis Khan (reign 1206 to 1227) on his mother's side.

Babur was often on the move both to evade his political rivals and to expand his own territories. After ruling from Kabul for over 20 years, Babur entered the Indian subcontinent and defeated Ibrahim Lodi (reign 1517 to 1526) and Rana Sanga (reign 1509 to 1529) in the battles of Panipat and Khanwa, respectively. However, Babur died shortly after, and it would not be until the reign of his grandson, Akbar I (reign 1556 to 1605), that the Mughal state apparatus would really take root.

Zahir ud-Din Muhammad Babur was born in 1483 in Akhsi (present-day Uzbekistan) as the prince of Ferghana to Umar-Shaykh Mirza II (died 1494) and Qultugh Nigar Khanum (died 1505). It was a politically turbulent period in Transoxiana, where shifting princely alliances were the norm. In such an atmosphere, an illustrious lineage could serve as a head start for making legitimate claims to the throne.

The dynastic pride of being the descendants of Timur remained central to the Mughal imperial identity throughout the empire's existence. Indeed, the term 'Mughal' was not an endonym, but a European exonym: members of the Mughal household, including Babur, called themselves Gurkani, meaning 'son-in-law,' in reference to Timur marrying a princess who had descended from Genghis Khan, thus becoming the great Khan's posthumous son-in-law. Due to the patrilineal passing down of titles, Babur retained his title mirza, which is the shortened form of amirzadeh, literally meaning "offspring of the Amir (Timur)," while some of his rivals, including Shaibani Khan, likewise used the cognate title khan, shortened from khanzadeh or "offspring of the Khan (Genghis)." Bearing the title mirza did not disadvantage Babur in any way, since Timur was a powerful political point of reference in his own right, and if his Genghisid identity was ever required, it could also be invoked through his mother's side. The identity of being either a Genghisid or a Timurid was not mutually exclusive.

When Babur's father died, leaving the 12-year-old boy as the heir in Andizhan, he immediately had to face the invading armies of the rulers of Samarkand and Moghulistan, who were his father's rival brother and brother-in-law, respectively. Supported by a group of loyal followers, the young prince suppressed rebellious nobles and captured wavering fortresses to solidify rule in his inherited territory. After a siege of seven months in 1497, Babur even won Samarkand, but in a later series of reversals, he not only lost Samarkand, but also Andizhan, and eventually all of Transoxiana.

By 1500, a far more powerful political opponent, the Uzbek ruler Muhammad Shaibani Khan (reign 1500 to 1510) had tightened his grip in the region. He seized Samarkand, Bukhara, and eventually Herat, forcing the young Babur into an exile that continuously extended further and further southwards. Babur escaped to and conquered Kabul in 1504, and he would use Kabul as his base to regroup and try to reconquer Samarkand for the next ten years. Since none of his attempts succeeded in the long run, he eventually set his sights on the North Indian plains, where he would lay the foundations of a wealthy and powerful empire, which would reach its zenith under his sixth-generation descendant Aurangzeb Alamgir (reign 1658 to 1707).

Though Babur ruled Kabul for 22 years, this period of his life is usually forgotten. The revenues of Kabul were limited, and the city did not have quite the potential to be the nucleus of a grander empire that a Timurid like him aspired to rule – thus the desire to either regain Samarkand or to look towards Hindustan. Nonetheless, in the relatively quieter Kabul, Babur deepened his cultural personality. He focused on learning poetry, law, translations in Chagatai Turkic, and visited major towns like Herat.

In 1509, he faced a rebellion of Turkmen troops, which he was able to suppress. His short-lived reconquest of Samarkand in 1511 had to be abandoned as well. Then for many years he must have been in and around Kabul, but we know little about it, especially because he stopped journaling and other writers did not comment on him much. In any case, ruling Hindustan started to appear a necessity over time.

When the young Babur first entered and scouted the subcontinent after crossing beyond Kabul in January 1505, he entered a different world, which he would struggle to adjust to, but of which he was nonetheless a very keen observer. As he remarked in his memoirs:

I had never seen a hot climate or any of Hindustan before. When we reached … a new world came into view – different plants, different trees, different animals and birds, different tribes and peoples, different manners and customs. It was astonishing, truly astonishing.
(Baburnama, 186)

While it is true that Babur entered a relatively new social and natural world, centuries before Babur's arrival, the Delhi Sultanate (1206 to 1526) had not only introduced the use of the Persian language but also created Indo-Islamic institutions and literati under state patronage, both of which would have been fairly familiar to Babur.

As a semi-nomadic prince, Babur was on the move for much of his life, whether to escape the rival armies of Shaibani Khan or to conquer an empire of his own. Apart from the political necessity to constantly migrate, he also had something of a wanderlust, once saying that if he could, he would go as far as China, though he never got the chance. However, Babur came from a highly sophisticated urban background with far-reaching trade networks and a rich cultural history.

Babur's birthplace, Ferghana Valley, was a part of the steppes of Central Asia drained by the great rivers Oxus (Amu Darya) and Jaxartes (Syr Darya). Much of the population in this semi-arid zone lived in urban settlements, which dotted the vast empty grasslands and deserts that separated them. Beyond the alluvial plains, this environment was fit for pastoralism and passage of trade caravans, but less so for extensive settled agriculture.

Babur considered cities like Bukhara, Samarkand, and Herat as his ideal intellectual abode: the same cities that produced such polymaths and scholars of the Central Asian Enlightenment as al-Biruni, Ibn Sina, al-Khwarizmi, Muhammad al-Bukhari, Naqshband Bukhari, and Ulugh Beg. Babur once remarked that "few cities in the civilized world are as pleasant as Samarkand" (Baburnama, 83). Wherever Babur went, he sought to recreate this proud "civilized" world which he had left behind.

Babur wrote an intimate and introspective autobiography, perhaps one of the finest memoirs from the medieval and early modern period anywhere in the world. Inspired by a sense of imperial destiny as the descendant of great conquerors, and equally affected by a poignant nostalgia for going back to Ferghana while he was exiled in Kabul and Hindustan, Babur turned to writing in order to familiarise the unfamiliar worlds he encountered.

The Baburnama is full of observations on politics and ethics, poetry (both classical and original), tales from battles, ethnographic commentaries, reflections on cultural differences, romantic encounters, dream stories, zoological and botanical descriptions, and delightful firsthand accounts of cities, gardens and pavilions buzzing with parties and meetings. Such a thematic breadth and the inclusion of rich miscellaneous details give his writings the flavour of both a private diary and a sophisticated gazette produced by an official surveyor. One can find copied revenue records; descriptions of exotic animals like rhinoceroses, peacocks and elephants; and travel accounts in quick succession in Babur's writings. While no text is ever 'objective,' some authors are certainly more careful to include both victories and defeats, and virtues and vices of the world as it appeared to them. Babur was one such author when he observed that

I have not written all this to complain: I have simply written the truth. I do not intend by what I have written to compliment myself: I have simply set down exactly what happened. … I have reported every good and evil I have seen of father and brother and set down the actuality of every fault and virtue of relative and stranger.
(Baburnama, 248)

Babur recalled a similar tender moment when he lost his capital Andizhan in 1498. Following the fall of the city, around 800 warriors and lords deserted him. Devastated, and for the first time separated from his territory and his subjects, Babur recalled how he "wept involuntarily." In a few months he gathered himself again, realising that "when one has pretensions to rule and a desire for conquest, one cannot sit back and just watch if events don't go right once or twice" (Baburnama, 93). Few emperors in world history have confessed their trials and tribulations so frankly for posterity. For this reason, historians have compared his memoirs to those of Saint Augustine of Hippo, Jean-Jacques Rousseau, Edward Gibbon, and Isaac Newton.

Behind such a self-reflexive honesty was also the conscious intention of educating later generations: Babur's memoirs were a nasihat namah, a 'book of advice' for his descendants, similar to the contemporaneous 'mirrors for princes' genre in Europe. The pedagogical intention of his memoirs can be observed at a glance from a letter to his son and the future Mughal emperor Humayun (reign 1530 to 1540 and 1555 to 1556), which he chose to append to his memoirs. Along with advising Humayun to take care of his younger brother and avoid infighting, Babur also scolded him for his poor spelling and handwriting.

While Babur continued to have wives throughout his life, one indication of Babur's fluid sexual orientation can be inferred from an episode in the spring of 1500, when he developed a romantic infatuation with a camp boy named Baburi. At the time, Babur had already been married off to a princess he had little interest in. By contrast, when Baburi came to meet him, Babur recalled that he turned "so bashful that I could not look him in the face, much less freely converse with him" (Baburnama, 112). He memorialised Baburi by penning couplets for him:

May no one be so distraught and devastated by love as I;
May no beloved be so pitiless and careless as you.
(Baburnama, 112)

Just like expressing his passion for Baburi, Babur considered it equally natural to compose contextually suitable poetry to memorialise important occasions. The culture of a Timurid prince was steeped in oral storytelling. In fact, the Baburnama itself is written in Chagatai Turkic, a primarily spoken language, instead of Persian, which was more widely used as the language of writing and state administration. Princes and princesses like Babur were expected to effortlessly recite poetry from Persian classics at appropriate points in discussions to competently make their points. They also participated in learned discussions and comradely meetings with their peers, usually in gardens, pavilions and camps.

Babur considered gardens a slice of paradise, and when he set out to create an empire in the Indian subcontinent from 1524 onwards, he dotted its landscape with gardens. He carried over to Hindustan one of the lasting legacies of Mughal architecture: the symmetrical, quadrilateral Perso-Islamic garden, or the chahar bagh. He persistently prioritised gardens far more than any other kind of building, including mosques. Gardens hosted the crucial activity of socialising, often with the consumption of alcohol and opiates. Such social spaces were highly important for forging and breaking alliances with other princes and princesses, and Babur considered it a central tenet of what he considered 'civilisation.'

There is a long list of garden parties that Babur participated in when he was in Ferghana and in Kabul, but the examples become rarer after 1520 when Babur entered the Indian plains. Babur was particularly troubled by this apparent lack of enclosed gardens in the subcontinent, calling it one of the "chief faults of Hindustan." In a country which he considered "unpleasant" because "the gardens have no walls, and most places are flat as boards," Babur laid the foundations of one of his first gardens in Agra in 1526 (Baburnama, 334, 359). One can still visit scores of Mughal chahar baghs scattered across South Asia in cities like Kabul, Srinagar, Lahore, Delhi, Agra, and Dhaka, to name a few major ones.

Babur had seen many battlefields in Central Asia, like Samarkand and Kandahar. His most consequential ones, however, would be in Hindustan. Victories in Agra and Delhi assured him of a full treasury, while Panipat and Khanwa put him on the political map as a conqueror. He's often portrayed as an 'Islamic invader' who oppressed the 'native Hindus,' but his conquest cannot be reduced to a 'clash of cultures' narrative. Before the fateful Battle of Panipat, Babur prepared not only militarily, but diplomatically. Entering Punjab, he retook control of Lahore from a rebellious Lodi governor in 1525 and used the existing disaffection amidst the subordinate governors of Ibrahim Lodi, an Afghan Muslim, to start making gains fort by fort. Via Ambala, he headed south towards Panipat after winning many smaller battles against Afghan chiefs loyal to Ibrahim Lodi. His primary opponent at Khanwa was Rana Sanga, a Rajput Hindu, who had powerful Muslim allies like Hasan Khan.

Babur was one of the first leaders to introduce the widespread utilisation of gunpowder weaponry in South Asia. However, it is important to stress that Babur won these battles not simply because his matchlockmen, light cannoneers and mortarmen were trained in Ottoman-style gunpowder warfare by his drillmasters Ustad Ali Quli and Mustafa Rumi, but equally because his disciplined Mongol cavalry outflanked and persistently broke the formation of enemy lines. The cavalry charges, combined with archers and gunners who took cover behind chained carts, sowed confusion and shock amidst opponent armies. At both Panipat and Khanwa, Babur's military tactics forced the opponents to coalesce towards the centre instead of engaging with the left or right flanks, raising the odds in favour of Babur.

It should also be remembered that the scale of warfare was far greater in Hindustan. Babur's forces from the late 1490s to the early 1500s consisted merely of 240 regular troops, but by 1526, they had swelled to at least 6 to 7,000. This was also accompanied by a proportional expansion of the economy. The revenue of Ferghana, Babur's first territory, was enough to raise an army of up to 4,000 troops, while Ibrahim Lodi's territories could generate revenue enough for 500,000 troops. Babur eventually gained territories far in excess of that; Hindustan was what Transoxiana or Kabul could never be. When his army was stricken with disease and poor morale after Panipat, some chiefs wanted to go back to the highlands. In a speech, he advised his people to abandon the idea of returning back home:

For some years we have struggled, experienced difficulties, traversed long distances, led the army, and cast ourselves and our soldiers into the dangers of war and battle ... What now compels us to throw away ... the realms we have taken at such cost? Shall we go back to Kabul and remain poverty stricken? Let no one who supports me say such things henceforth.
(Baburnama, 354)

Firearms, cavalry and diplomacy might have been sufficient to lead Babur to victory, but he would have thought that the role of divine blessing was no less. Sufism can be broadly understood as an umbrella term for diverse sets of spiritual practices and religious orders, including 'heterodox' ones, within the broader context of Islam. Sufism has saintly figures, or awliya, who are considered especially close to God, and they can assist others towards their path to God as well. Babur was a Hanafi Sunni Muslim but had a deep reverence for the saint Shaikh Khwaja Ahrar (died 1490), who often appears as a character in Babur's dreams, prophesying victories and sometimes even saving his life from enemies.

Acknowledging and respecting spiritual authorities was considered an important duty of a ruler. For instance, after the Battle of Panipat in 1526, when the victorious Babur entered Delhi, the first thing he did was to circumambulate the tombs of Shaikh Nizamuddin Awliya (1237 to 1324) and Khwaja Qutubuddin Bakhtyar Kaki (1173 to 1236), two of the most important Sufi saints who were revered by people of all faiths in the city. Similarly, when Babur was setting up his rule from Agra in late 1528, he invited the descendants of Khwaja Ahrar to stay in and bless his new empire, demonstrating once again how rulers of the profane world sought blessings from the Sufi saints.

Babur was exiled from Ferghana, and he always wanted to return to the climes he grew up in, but the dual factors of hostile opponents and the abundance of material and labour resources in Hindustan made him stay. Homesick though he was for the cool, blue-tiled cities of Transoxiana and its melons that made him cry tears of homesickness every now and then, he was delighted to find that Hindustan was awash in riches both material and human.

Gradually, Babur also recreated in Hindustan the paradisical gardens and cultured gatherings that poignantly reminded him of Ferghana. Unlike Babur, whose early death denied him greater familiarity with Hindustan, the later Mughals found the subcontinent to be their ideal abode from which to project their claims of universalist benevolent rule. Babur and his descendants would leave an indelible mark on the history of the Indian subcontinent, ranging from art and cuisine to architecture and economy.