Marrakech is hot primarily due to its geographic location on the edge of the Sahara Desert, giving it an arid to semi-arid climate. This results in abundant, intense sunshine and very dry air, with no significant bodies of water nearby to moderate the extreme temperatures.