This is Dades Gorge, Located about 4 hours drive from Marrakech and there is another gorge called Todgha Gorge located 50km from this one.
It is a place where Cadillac also
It is the Dadès Gorge. It is about six hours from Marrakech on the road to the dunes of Merzouga.
The Auberge Chez Pierre is a convenient hotel nearby.
This seems to be one of the Dadès Gorges; the road in the first picture in the gallery on Wikipedia matches yours.
By Rosino – flickr.com, CC BY-SA 2.0, https://commons.wikimedia.org/w/index.php?curid=1038272
Credit:stackoverflow.com‘