The context behind the rise of the Delhi Sultanate in India was part of a wider trend affecting much of the Asian continent, including the whole of southern and western Asia: the influx of nomadic Turkic peoples from the Central Asian steppes. This can be traced back to the 9th century when the Islamic Caliphate began fragmenting in the Middle East, where Muslim rulers in rival states began enslaving non-Muslim nomadic Turks from the Central Asian steppes and raising many of them to become loyal military slaves called Mamluks. Soon, Turks were migrating to Muslim lands and becoming Islamicized. Many of the Turkic Mamluk slaves eventually rose up to become rulers, and conquered large parts of the Muslim world, establishing Mamluk Sultanates from Egypt to present-day Afghanistan, before turning their attention to the Indian subcontinent.