The Hafsid Empire was a region of Ifriqiya (approximately bound modern day Tunisia, western Libya, and eastern Algeria) ruled by a Sunni Muslim dynasty of Amazigh (Berber) descent from 1229 to 1574.