Complex sentence: The city escaped the destruction brought upon India by the armies of Nadir Shah, but it was ruled from Kabul by numerous Afghan dynasties for a while.
Split into simpler sentences: The city escaped the destruction brought upon India by the armies of Nadir Shah. Afterwards it was ruled from Kabul by numerous Afghan dynasties for a while.