Slavery in Egypt existed up until the early 20th century. It differed from the previous slavery in ancient Egypt, being managed in accordance with Islamic law from the conquest of the Caliphate in the 7th century until the practice stopped in the early 20th-century, having been gradually abolished in the late 19th century.