Hafsid dynasty
Toward the end, internal disarray within the Hafsid dynasty created vulnerabilities, while a great power struggle arose between Spaniard and Turk over control of the Mediterranean. The Hafsid dynasts became pawns, subject to the rival strategies of the combatants. By 1574 Ifriqiya had been incorporated into the Ottoman Empire.