Hafsid Caliphate founded
Tunis, TunisiaIn 1229 Ifriqiyas governor, Abu Zakariya returned to Tunis after conquering Constantine and Béjaïa the same year and declared independence. After the split of the Hafsids from the Almohads under Abu Zakariya (1228–1249), Abu Zakariya organised the administration in Ifriqiya (the Roman province of Africa in modern Maghreb; today's Tunisia, eastern Algeria and western Libya) and built the city of Tunis up as the economic and cultural centre of the empire. At the same time, many Muslims from Al-Andalus fleeing the Christian Reconquista of Iberia were absorbed. He subsequently annexed Tripoli in 1234, Algiers in 1235, Chelif River 1236, and subdued important tribal confederations of the Berbers from 1235 to 1238.
He also conquered the Kingdom of Tlemcen in July 1242 forcing the Sultan of Tlemcen his vassals.