Almohad Caliphate
He founded the Zayyanid state in 1235, and warred with the Almohad Caliphate until 1248.