Complex sentence: After the fall of the Roman Empire, the prosperous city declined and when it was included within the borders of Bulgaria, it was just a minor fortified town.
Split into simpler sentences: After the fall of the Roman Empire, the prosperous city declined. When it was included within the borders of Bulgaria, it was just a minor fortified town.