Was a bandit kingdom during the crusades and the Medinas civil war