The Middle Atlas is a mountain range in Morocco and the northernmost, second highest segment of the Atlas Mountains. It forms the western edge of a plateau that extends east into Algeria and is bounded by the Tell Atlas to the north and the Saharan Atlas to the south, with the High Atlas to its south separated by the Moulouya and Um Er-Rbiâ rivers and the Rif Mountains to its north across the Sebou River. The range plays a critical role in Morocco's hydrology by feeding major river basins—Sebou, Oum Errabiaa, Bou Regreg, and Moulouya—which support the nation’s primary agricultural regions, while its seasonal snowfall and cool summer climate, exemplified by Ifrane’s winter sports facilities, complement its natural habitats that include the native Barbary macaque.