Within a century of Muhammad's conquest of Mecca, Islamic armies conquered lands from northern Africa, southern Europe, through the Middle East and east up to India. Within a century of that the Caliphate split up into several parts. The eastern segment, under the Abbasid caliphs, became a center of growth, of luxury, and of peace. In 766 the caliph al-Mansur founded his capitol in Baghdad and the caliph Harun al-Rashid, established a library. The stage was set for his successor, Al-Ma'mum.