Complex sentence: Abbas was later appointed by Sultan Selim III as the Sheikh of Safad, but in 1799, when Napoleon invaded Palestine, but withdrew after being defeated in Acre, Abbas and Salih both left Safad with the departing French forces.
Split into simpler sentences: Abbas was later appointed by Sultan Selim III as the Sheikh of Safad. However, in 1799, when Napoleon invaded Palestine, but withdrew after being defeated in Acre, Abbas and Salih both left Safad with the departing French forces.