Complex sentence: When the Ottoman commanders promised to leave the city to the defenders they put down their arms, but the Ottomans broke the armistice and massacred all of the defenders when they tried to leave the city.
Split into simpler sentences: When the Ottoman commanders promised to leave the city to the defenders they put down their arms. However the Ottomans broke the armistice and massacred all of the defenders when they tried to leave the city.