qnli question: When did he win Ottoman confidence? sentence: In his later career he became a high official in the Ottoman Empire, working as Governor of Egypt for the Ottoman khedive for the purpose of conducting campaigns against slavers and slavery in Egypt and the Sudan.