Complex sentence: Shoja Shah of the Durrani Empire signs a treaty with the British; only weeks later, he is succeeded by Mahmud Shah.
Split into simpler sentences: Shoja Shah of the Durrani Empire signs a treaty with the British. Only weeks later, he is succeeded by Mahmud Shah.