Complex sentence: During the 18th century, as Mughal power dwindled, Lahore was often invaded by Afghan armies and became a province of the Afghan Empire, governed by provincial rulers with their own court.
Split into simpler sentences: During the 18th century, as Mughal power dwindled, Lahore was often invaded. The city was a province of the Afghan Empire, governed by provincial rulers with their own court.