Abu Kamal Temim bin Ziri bin Ya'la Al-Yafrani, was the leader of the Berber Zenata tribe known as Banu Ifren from 1029 to 1035 during the Middle Ages in the Maghreb. He is the grandson of Yala Ibn Mohammed.
He is known for the construction of the Grand Mosque of Salé in 1028, which was later reconstructed by the Almohads in the 12th century.
In 1029, Temim expedited to Tamesna where he eradicated false Barghawata doctrines, expelled half of the population, enslaving the rest, and established his residence there He is also known for building the city of Salé in 1030.
In 1033, Temim, leading troops of the Banu Ifran, seized Fez, Morocco from under Maghrawa leader Hammama. Hammama was forced to flee to Oujda. There, Temim perpetrated the 1033 Fez massacre, killing 6,000 Moroccan Jews, seizing their possessions, burning their homes, and enslaving their women. Hammama rallied his forces and reconquered Fez in 1039. After fleeing, Temim conquered the city of Chellah, extending his control as far as Tadla.
Temim died in 1054âÂÂ55 in Salé, specifically in Chellah, which he had conquered after fleeing from Hammama in 1038âÂÂ39. He was succeeded by his son Hammad.