Holm oak grows in pure stands or mixed forest in the Mediterranean and often at low or moderate elevations. One of the plant associations in which holm oak is found is the holm oak/Atlas cedar forests of the Atlas Mountains. In Morocco, some of these mixed forests are habitat to the endangered primate, Barbary macaque, Macaca sylvanus.