James I of Aragon
After the Moorish conquest of Iberia, it was ruled by the Berber Zenata people, until it was captured by King James I of Aragon in 1229.