This is Kasbah Taourirt in Ouarzazate, a Sahara Desert gateway town in the center-south of our mystery country. Taourirt was built in the 19th century by the Glaoui, a ruling clan of the south. UNESCO has restored the palace section of the kasbah and it is open to tourists. The Kasbah was a small fortified village, with multiple single-family dwellings inside, as well as the palace, and several families still live there.
Can you name that country?
See below for answers.