Ali ibn Rashid al-Alami (1440–1512), also known as Sherif Moulay Ali Ben Rachid, was a Moroccan military leader and founder of Chefchaouen. He was an Idrisid and a descendant of the Sufi saint Abd as-Salam ibn Mashish al-Alami.
In 1471, he founded Chefchaouen as a base for attacks against the Portuguese, who had conquered Ceuta in 1415. He was also the father of Sayyida al-Hurra, who later governed Tetouan.