Looking at the photos it would seem a Swiss village but in reality we are at completely different latitudes. It is in fact Ifrane, a small town in Morocco that has become famous for a completely different style than the other surrounding towns.
The whole country was in fact built with a European style, which is why today it is called the little Swiss of Africa. In addition to the style, the climatic aspect is also singular, since it is located in a region characterized by an alpine climate.
But there is a simple explanation: the city was built by the French in the 1930s, which is why it looks more like a European city than an African one. At that time Morocco was under the French protectorate and the government wanted to make Ifrane the ideal place for French citizens who moved to the colony.
After independence, the remaining inhabitants expanded the city following a style more akin to African locations, despite everything Ifrane remains a famous tourist spot very popular with locals and foreigners.