Question: In what century did Muslims conquer the region to which the Ottoman Empire expanded after signing a peace treaty with Venice?

full_context: Document 1: Islam in Spain: Islam was a widespread religion in what is now Spain and Portugal for nine centuries, beginning with the Umayyad conquest of Hispania and ending (at least overtly) with its prohibition by the modern Spanish state in the mid-16th century and the expulsion of the Moriscos in the early 17th century. Although a significant proportion of Moriscos returned to Spain or avoided expulsion through various means, and the decree never affected the country's large enslaved Muslim population, the indigenous practice of Islam had faded into obscurity by the 19th century.
Document 2: 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 3: Middle Ages: Religious beliefs in the Eastern Empire and Persia were in flux during the late 6th and early 7th centuries. Judaism was an active proselytising faith, and at least one Arab political leader converted to it.[J] Christianity had active missions competing with the Persians' Zoroastrianism in seeking converts, especially among residents of the Arabian Peninsula. All these strands came together with the emergence of Islam in Arabia during the lifetime of Muhammad (d. 632). After his death, Islamic forces conquered much of the Eastern Empire and Persia, starting with Syria in 634–635 and reaching Egypt in 640–641, Persia between 637 and 642, North Africa in the later 7th century, and the Iberian Peninsula in 711. By 714, Islamic forces controlled much of the peninsula in a region they called Al-Andalus.
Document 4: Southern Europe: The Reconquista of Portugal and Spain led to a series of oceanic explorations resulting in the Age of Discovery that established direct links with Africa, the Americas, and Asia, while religious wars continued to be fought in Europe, which ended in 1648 with the Peace of Westphalia. The Spanish crown maintained its hegemony in Europe and was the leading power on the continent until the signing of the Treaty of the Pyrenees, which ended a conflict between Spain and France that had begun during the Thirty Years' War. An unprecedented series of major wars and political revolutions took place around Europe and indeed the world in the period between 1610 and 1700. Observers at the time, and many historians since, have argued that wars caused the revolutions. Galileo Galilei, invented the telescope and the thermometer which allowed him to observe and describe the solar system. Leonardo da Vinci painted the most famous work in the world. Guglielmo Marconi invented the radio.
Document 5: Middle Ages: The Islamic conquests reached their peak in the mid-8th century. The defeat of Muslim forces at the Battle of Poitiers in 732 led to the reconquest of southern France by the Franks, but the main reason for the halt of Islamic growth in Europe was the overthrow of the Umayyad dynasty and its replacement by the Abbasid dynasty. The Abbasids moved their capital to Baghdad and were more concerned with the Middle East than Europe, losing control of sections of the Muslim lands. Umayyad descendants took over the Iberian Peninsula, the Aghlabids controlled North Africa, and the Tulunids became rulers of Egypt. By the middle of the 8th century, new trading patterns were emerging in the Mediterranean; trade between the Franks and the Arabs replaced the old Roman patterns of trade. Franks traded timber, furs, swords and slaves in return for silks and other fabrics, spices, and precious metals from the Arabs.
Document 6: Middle Ages: Religious beliefs in the Eastern Empire and Iran were in flux during the late sixth and early seventh centuries. Judaism was an active proselytising faith, and at least one Arab political leader converted to it. Christianity had active missions competing with the Persians' Zoroastrianism in seeking converts, especially among residents of the Arabian Peninsula. All these strands came together with the emergence of Islam in Arabia during the lifetime of Muhammad (d. 632). After his death, Islamic forces conquered much of the Eastern Empire and Persia, starting with Syria in 634–635 and reaching Egypt in 640–641, Persia between 637 and 642, North Africa in the later seventh century, and the Iberian Peninsula in 711. By 714, Islamic forces controlled much of the peninsula in a region they called Al-Andalus.The Islamic conquests reached their peak in the mid-eighth century. The defeat of Muslim forces at the Battle of Tours in 732 led to the reconquest of southern France by the Franks, but the main reason for the halt of Islamic growth in Europe was the overthrow of the Umayyad Caliphate and its replacement by the Abbasid Caliphate. The Abbasids moved their capital to Baghdad and were more concerned with the Middle East than Europe, losing control of sections of the Muslim lands. Umayyad descendants took over the Iberian Peninsula, the Aghlabids controlled North Africa, and the Tulunids became rulers of Egypt. By the middle of the 8th century, new trading patterns were emerging in the Mediterranean; trade between the Franks and the Arabs replaced the old Roman economy. Franks traded timber, furs, swords and slaves in return for silks and other fabrics, spices, and precious metals from the Arabs.
Document 7: Ottoman Empire: This period of renewed assertiveness came to a calamitous end in May 1683 when Grand Vizier Kara Mustafa Pasha led a huge army to attempt a second Ottoman siege of Vienna in the Great Turkish War of 1683–1687. The final assault being fatally delayed, the Ottoman forces were swept away by allied Habsburg, German and Polish forces spearheaded by the Polish king Jan III Sobieski at the Battle of Vienna. The alliance of the Holy League pressed home the advantage of the defeat at Vienna, culminating in the Treaty of Karlowitz (26 January 1699), which ended the Great Turkish War. The Ottomans surrendered control of significant territories, many permanently. Mustafa II (1695–1703) led the counterattack of 1695–96 against the Habsburgs in Hungary, but was undone at the disastrous defeat at Zenta (in modern Serbia), 11 September 1697.
Document 8: Ottoman Empire: In southern Europe, a Catholic coalition led by Philip II of Spain won a victory over the Ottoman fleet at the Battle of Lepanto (1571). It was a startling, if mostly symbolic, blow to the image of Ottoman invincibility, an image which the victory of the Knights of Malta against the Ottoman invaders in the 1565 Siege of Malta had recently set about eroding. The battle was far more damaging to the Ottoman navy in sapping experienced manpower than the loss of ships, which were rapidly replaced. The Ottoman navy recovered quickly, persuading Venice to sign a peace treaty in 1573, allowing the Ottomans to expand and consolidate their position in North Africa.
Document 9: Middle Ages: Depopulation, deurbanisation, invasion, and movement of peoples, which had begun in Late Antiquity, continued in the Early Middle Ages. The barbarian invaders, including various Germanic peoples, formed new kingdoms in what remained of the Western Roman Empire. In the 7th century, North Africa and the Middle East—once part of the Eastern Roman Empire—came under the rule of the Caliphate, an Islamic empire, after conquest by Muhammad's successors. Although there were substantial changes in society and political structures, the break with Antiquity was not complete. The still-sizeable Byzantine Empire survived in the east and remained a major power. The empire's law code, the Code of Justinian, was rediscovered in Northern Italy in 1070 and became widely admired later in the Middle Ages. In the West, most kingdoms incorporated the few extant Roman institutions. Monasteries were founded as campaigns to Christianise pagan Europe continued. The Franks, under the Carolingian dynasty, briefly established the Carolingian Empire during the later 8th and early 9th century. It covered much of Western Europe, but later succumbed to the pressures of internal civil wars combined with external invasions—Vikings from the north, Magyars from the east, and Saracens from the south.
Document 10: Ottoman Empire: Part of the Ottoman territories in the Balkans (such as Thessaloniki, Macedonia and Kosovo) were temporarily lost after 1402 but were later recovered by Murad II between the 1430s and 1450s. On 10 November 1444, Murad II defeated the Hungarian, Polish, and Wallachian armies under Władysław III of Poland (also King of Hungary) and John Hunyadi at the Battle of Varna, the final battle of the Crusade of Varna, although Albanians under Skanderbeg continued to resist. Four years later, John Hunyadi prepared another army (of Hungarian and Wallachian forces) to attack the Turks but was again defeated by Murad II at the Second Battle of Kosovo in 1448.
Document 11: Great Turkish War: The Great Turkish War () or the War of the Holy League () was a series of conflicts between the Ottoman Empire and the Holy League consisting of the Habsburg Monarchy, Poland-Lithuania, Venice and Russia. Intensive fighting began in 1683 and ended with the signing of the Treaty of Karlowitz in 1699. The war was a defeat for the Ottoman Empire, which for the first time lost large amounts of territory. It lost lands in Hungary and the Polish–Lithuanian Commonwealth, as well as part of the western Balkans. The war was also significant in that it marked the first time Russia was involved in a western European alliance.
Document 12: History of Iran: Iranian dynastic history was interrupted by the Arab conquest of Persia in 651 AD, establishing the even larger Islamic caliphate, and later by the Mongol invasion. The main religion of ancient Persia was the native Zoroastrianism, but after the seventh century, it was replaced by Islam.
Document 13: Ottoman Empire: The Ottoman Navy vastly contributed to the expansion of the Empire's territories on the European continent. It initiated the conquest of North Africa, with the addition of Algeria and Egypt to the Ottoman Empire in 1517. Starting with the loss of Greece in 1821 and Algeria in 1830, Ottoman naval power and control over the Empire's distant overseas territories began to decline. Sultan Abdülaziz (reigned 1861–1876) attempted to reestablish a strong Ottoman navy, building the largest fleet after those of Britain and France. The shipyard at Barrow, England, built its first submarine in 1886 for the Ottoman Empire.
Document 14: Battle of Lepanto: The Battle of Lepanto was a naval engagement that took place on 7 October 1571 when a fleet of the Holy League, of which the Venetian Empire and the Spanish Empire were the main powers, inflicted a major defeat on the fleet of the Ottoman Empire in the Gulf of Patras, where Ottoman forces sailing westward from their naval station in Lepanto (the Venetian name of ancient Naupactus Ναύπακτος, Ottoman İnebahtı) met the fleet of the Holy League sailing east from Messina, Sicily. The Holy League was a coalition of European Catholic maritime states arranged by Pope Pius V and led by Adm. John of Austria, as agreed between Philip II of Spain -- who largely financed the League -- and the Venetian Republic (main contributor of ships).
Document 15: Philip V of Macedon: After the Peace of Naupactus in 217 BC, Philip V tried to replace Roman influence along the eastern shore of the Adriatic, forming alliances or lending patronage to certain island and coastal provinces such as Lato on Crete. He first tried to invade Illyria from the sea, but with limited success. His first expedition in 216 BC had to be aborted, while he suffered the loss of his whole fleet in a second expedition in 214 BC.  A later expedition by land met with greater success when he captured Lissus in 212 BC.
ground_truth: 7th
sub_queries: After signing a peace treaty with Venice, in what region did the Ottoman empire expand? Answer: North Africa
In what century did Muslims conquer North Africa ? Answer: 7th