Complex sentence: They remained in Palestine until the final defeat of the Turks in September 1918 when they sailed from Beirut to Alexandria and were demobbed in Cairo.
Split into simpler sentences: They remained in Palestine until the final defeat of the Turks in September 1918. They sailed from Beirut to Alexandria and were demobbed in Cairo.