Question: The Siege of the capital before Ali changed it was part of what war?

full_context: Document 1: Umayyad Caliphate: After the assassination of Uthman in 656, Ali, a member of the Quraysh tribe and the cousin and son-in-law of Muhammad, was elected as the caliph. He soon met with resistance from several factions, owing to his relative political inexperience. Ali moved his capital from Medina to Kufa. The resulting conflict, which lasted from 656 until 661, is known as the First Fitna ("civil war"). Muawiyah I, the governor of Syria, a relative of Uthman ibn al-Affan and Marwan I, wanted the culprits arrested. Marwan I manipulated everyone and created conflict. Aisha, the wife of Muhammad, and Talhah and Al-Zubayr, two of the companions of Muhammad, went to Basra to tell Ali to arrest the culprits who murdered Uthman. Marwan I and other people who wanted conflict manipulated everyone to fight. The two sides clashed at the Battle of the Camel in 656, where Ali won a decisive victory.
Document 2: Hejaz: In 1916, Sharif Hussein ibn Ali proclaimed himself King of an independent Hejaz, as a result of the McMahon–Hussein Correspondence. The ensuing Arab Revolt overthrew the Ottoman Empire. In 1924, however, Ibn Ali was forced into exile by Ibn Saud of the Najd.
Document 3: Siege of Medina: Medina, an Islamic holy city in Arabia, underwent a long siege during World War I. Medina was at the time part of the Ottoman Empire. In the war, the Ottoman Empire sided with the Central Powers. Sharif Hussain of Mecca revolted against the caliph and the Ottoman Empire which, under the leadership of the nationalistic Young Turks, had ignored the wishes of the Caliph and sided with the Central Powers. Hussain instead sided with the British Empire. T. E. Lawrence was instrumental in this revolt. Hussain occupied Mecca and besieged Medina. It was one of the longest sieges in history that lasted till even after the end of war. Fahreddin Pasha was the defender of Medina. Some celebrated him as ""the Lion of the Desert"" despite the suffering of those who remained in Medina. The siege lasted two years and seven months.
Document 4: Umayyad Caliphate: Yazid died while the siege was still in progress, and the Umayyad army returned to Damascus, leaving Ibn al-Zubayr in control of Mecca. Yazid's son Muawiya II (683–84) initially succeeded him but seems to have never been recognized as caliph outside of Syria. Two factions developed within Syria: the Confederation of Qays, who supported Ibn al-Zubayr, and the Quda'a, who supported Marwan, a descendant of Umayya via Wa'il ibn Umayyah. The partisans of Marwan triumphed at a battle at Marj Rahit, near Damascus, in 684, and Marwan became caliph shortly thereafter.
Document 5: Ottoman Empire: The history of the Ottoman Empire during World War I began with the Ottoman engagement in the Middle Eastern theatre. There were several important Ottoman victories in the early years of the war, such as the Battle of Gallipoli and the Siege of Kut. The Arab Revolt which began in 1916 turned the tide against the Ottomans on the Middle Eastern front, where they initially seemed to have the upper hand during the first two years of the war. The Armistice of Mudros was signed on 30 October 1918, and set the partition of the Ottoman Empire under the terms of the Treaty of Sèvres. This treaty, as designed in the conference of London, allowed the Sultan to retain his position and title. The occupation of Constantinople and İzmir led to the establishment of a Turkish national movement, which won the Turkish War of Independence (1919–22) under the leadership of Mustafa Kemal (later given the surname "Atatürk"). The sultanate was abolished on 1 November 1922, and the last sultan, Mehmed VI (reigned 1918–22), left the country on 17 November 1922. The caliphate was abolished on 3 March 1924.
Document 6: Mehmed VI: The First World War was a disaster for the Ottoman Empire. British and allied forces had conquered Baghdad, Damascus, and Jerusalem during the war and most of the Ottoman Empire was divided amongst the European allies. At the San Remo conference of April 1920, the French were granted a mandate over Syria and the British were granted one over Palestine and Mesopotamia. On 10 August 1920, Mehmed's representatives signed the Treaty of Sèvres, which recognised the mandates and recognised Hejaz as an independent state.
Document 7: Şahin Bey: Şahin Bey's return to the Western front would come after the Ottoman Empire entered the World War I on the side of the Central Powers. He was sent to Galicia to help the allies of the empire. He was later transferred to the Middle Eastern front of the war, specifically to Sinai in 1917. There he took part in the Sinai and Palestine Campaign which resulted with another defeat for the Ottoman-German alliance. Şahin Bey became a prisoner of war in the hands of the British forces. He was not released until 1919.
Document 8: Partition of the Ottoman Empire: The partition of the Ottoman Empire (Armistice of Mudros, 30 October 1918 -- Abolition of the Ottoman Sultanate, 1 November 1922) was a political event that occurred after World War I and the occupation of Constantinople by British, French and Italian troops in November 1918. The partitioning was planned in several agreements made by the Allied Powers early in the course of World War I, notably the Sykes - Picot Agreement. As world war loomed, the Ottoman Empire sought protection but was rejected by Britain, France, and Russia, and finally formed the Ottoman -- German Alliance. The huge conglomeration of territories and peoples that formerly comprised the Ottoman Empire was divided into several new states. The Ottoman Empire had been the leading Islamic state in geopolitical, cultural and ideological terms. The partitioning of the Ottoman Empire led to the rise in the Middle East of Western powers such as Britain and France and brought the creation of the modern Arab world and the Republic of Turkey. Resistance to the influence of these powers came from the Turkish national movement but did not become widespread in the post-Ottoman states until after World War II.
Document 9: Umayyad Caliphate: The Quran and Muhammad talked about racial equality and justice as in The Farewell Sermon. Tribal and nationalistic differences were discouraged. But after Muhammad's passing, the old tribal differences between the Arabs started to resurface. Following the Roman–Persian Wars and the Byzantine–Sassanid Wars, deep rooted differences between Iraq, formally under the Persian Sassanid Empire, and Syria, formally under the Byzantine Empire, also existed. Each wanted the capital of the newly established Islamic State to be in their area. Previously, the second caliph Umar was very firm on the governors and his spies kept an eye on them. If he felt that a governor or a commander was becoming attracted to wealth, he had him removed from his position.
Document 10: Hejaz Expeditionary Force: The Hejaz Expeditionary Force () of the Ottoman Empire was one of the expeditionary forces of the Ottoman Army. Its commander had the authority of an army commander. It was formed during World War I for the defense of Medina (located in the region known as the Hejaz).
Document 11: Umayyad Caliphate: Marwan was succeeded by his son, Abd al-Malik (685–705), who reconsolidated Umayyad control of the caliphate. The early reign of Abd al-Malik was marked by the revolt of Al-Mukhtar, which was based in Kufa. Al-Mukhtar hoped to elevate Muhammad ibn al-Hanafiyyah, another son of Ali, to the caliphate, although Ibn al-Hanafiyyah himself may have had no connection to the revolt. The troops of al-Mukhtar engaged in battles both with the Umayyads in 686, defeating them at the river Khazir near Mosul, and with Ibn al-Zubayr in 687, at which time the revolt of al-Mukhtar was crushed. In 691, Umayyad troops reconquered Iraq, and in 692 the same army captured Mecca. Ibn al-Zubayr was killed in the attack.
Document 12: Ottoman Empire during World War I: The Ottoman Empire participated in World War I as one of the Central Powers. The Ottoman Empire entered the war by carrying out a surprise attack on Russia's Black Sea coast on 29 October 1914, with Russia responding by declaring war on it on November 5th, 1914. Ottoman forces fought the Entente in the Balkans and the Middle Eastern theatre of World War I. The Ottoman Empire's defeat in the war in 1918 was crucial in the eventual dissolution of the empire in 1921.
Document 13: Umayyad Caliphate: Early Muslim armies stayed in encampments away from cities because Umar feared that they might get attracted to wealth and luxury. In the process, they might turn away from the worship of God and start accumulating wealth and establishing dynasties. When Uthman ibn al-Affan became very old, Marwan I, a relative of Muawiyah I, slipped into the vacuum, became his secretary, slowly assumed more control and relaxed some of these restrictions. Marwan I had previously been excluded from positions of responsibility. In 656, Muhammad ibn Abi Bakr, the son of Abu Bakr, the adopted son of Ali ibn Abi Talib, and the great grandfather of Ja'far al-Sadiq, showed some Egyptians the house of Uthman ibn al-Affan. Later the Egyptians ended up killing Uthman ibn al-Affan.
Document 14: Umayyad Caliphate: According to tradition, the Umayyad family (also known as the Banu Abd-Shams) and Muhammad both descended from a common ancestor, Abd Manaf ibn Qusai, and they originally came from the city of Mecca. Muhammad descended from Abd Manāf via his son Hashim, while the Umayyads descended from Abd Manaf via a different son, Abd-Shams, whose son was Umayya. The two families are therefore considered to be different clans (those of Hashim and of Umayya, respectively) of the same tribe (that of the Quraish). However Muslim Shia historians suspect that Umayya was an adopted son of Abd Shams so he was not a blood relative of Abd Manaf ibn Qusai. Umayya was later discarded from the noble family. Sunni historians disagree with this and view Shia claims as nothing more than outright polemics due to their hostility to the Umayyad family in general. They point to the fact that the grand sons of Uthman, Zaid bin amr bin uthman bin affan and Abdullah bin Amr bin Uthman got married to the Sukaina and Fatima the daughters of Hussein son of Ali to show closeness of Banu hashem and Bani Ummayah.
Document 15: Umayyad Caliphate: The Umayyad Caliphate (Arabic: الخلافة الأموية‎, trans. Al-Khilāfat al-ʾumawiyya) was the second of the four major Islamic caliphates established after the death of Muhammad. This caliphate was centered on the Umayyad dynasty (Arabic: الأمويون‎, al-ʾUmawiyyūn, or بنو أمية, Banū ʾUmayya, "Sons of Umayya"), hailing from Mecca. The Umayyad family had first come to power under the third caliph, Uthman ibn Affan (r. 644–656), but the Umayyad regime was founded by Muawiya ibn Abi Sufyan, long-time governor of Syria, after the end of the First Muslim Civil War in 661 CE/41 AH. Syria remained the Umayyads' main power base thereafter, and Damascus was their capital. The Umayyads continued the Muslim conquests, incorporating the Caucasus, Transoxiana, Sindh, the Maghreb and the Iberian Peninsula (Al-Andalus) into the Muslim world. At its greatest extent, the Umayyad Caliphate covered 15 million km2 (5.79 million square miles), making it the largest empire (in terms of area - not in terms of population) the world had yet seen, and the fifth largest ever to exist.
ground_truth: World War I
sub_queries: Where was the capital before Ali changed it? Answer: Medina
Siege of Medina >> part of Answer: World War I