Complex sentence: The population of the region of Xanthi had dwindled down to almost nothing and almost everything had been destroyed when the Ottomans conquered the region in 1361.
Split into simpler sentences: The population of the region of Xanthi had dwindled down to almost nothing and almost everything had been destroyed. This was the situation when the Ottomans conquered the region in 1361.