Complex sentence: During early Ottoman rule, Tunisia lost control (in the 1520s) over Constantine (historically within Hafsid domains), which fell to attacks led by the beylerbey Khayr al-Din of Algiers.
Split into simpler sentences: During early Ottoman rule, Tunisia lost control (in the 1520s) over Constantine. The area was historically within Hafsid domains, but fell to attacks led by the beylerbey Khayr al-Din of Algiers.