Slavery in the Ottoman Empire: “Responding to the influence and pressure of European countries in the 19th century, the Empire began taking steps to curtail the slave trade… Legislation explicitly prohibiting slavery was finally adopted in 1964.”

Link. Read this after an excellent audiobook on Ottoman history which time and again returns to role of Ottoman slaves. Slavery was hugely important to sustain empire and lasted into late 19th century.