where did the second mentioned place get the name from?
One possible origin of the name Marrakesh is from the Berber words "amur and akush", which means "Land of God".
Marrakesh
The exact meaning of the name is debated. One possible origin of the name Marrakesh is from the Berber (Amazigh) words "amur (n) akush" (ⴰⵎⵓⵔ ⵏ ⴰⴽⵓⵛ), which means "Land of God". 
what country casablanca and marrakech are located in Kingdom of Morocco
wiki:25614871
Marrakesh [SEP] Etymology
The exact meaning of the name is debated. One possible origin of the name Marrakesh is from the Berber (Amazigh) words "amur (n) akush" (ⴰⵎⵓⵔ ⵏ ⴰⴽⵓⵛ), which means "Land of God". According to historian Susan Searight, however, the town's name was first documented in an 11th-century manuscript in the Qarawiyyin library in Fez, where its meaning was given as "country of the sons of Kush". The word "mur" is used now in Berber mostly in the feminine form "tamurt". The same word "mur" appears in Mauretania, the North African kingdom from antiquity, although the link remains controversial as this name possibly originates from μαύρος "mavros", the ancient Greek word for black.