Complex sentence: He was the governor of Gabes and then of Tunis in 1229, he seized the opportunity offered by disturbances in the Almohad Empire to declare himself independent late in 1229.
Split into simpler sentences: He was the Almohad governor of Gabes and then of Tunis by 1229. He seized the opportunity offered by disturbances in the Almohad Empire to declare himself independent late in 1229.