Cariye
In the first half of the 19th century, slavery had come to be regarded as morally wrong in the Western world. The liberal Sultan Abdulmejid I, who was affected by these views, included anti-slavery laws among his Westernized reforms, and formally banned the  slavery system. This was, however, a formal ban, and in reality, the  continued informally until the end of the 19th century.