By the 8th century, the rise of the Muslim Empire spread Arab rule over the Middle East, Egypt, and North Africa. After appointing a Berber, Tariq, to invade Spain, the Arabs enslaved the Visigoth Kingdom. Seven centuries of their Moorish rule brought accomplishments in mathematics, architecture, and science.