when was the first one constructed?
The construction work began in December 1578 and took 15 years for completion.
El Badi Palace
According to al-Ifrani, construction of the palace began in December 1578 (Shawwal 986 AH), only a few months after the Saadian victory at the Battle of the Three Kings and Ahmad's accession to power, and took fifteen years, finishing in 1593 (1002 AH).
what country casablanca and marrakech are located in Kingdom of Morocco 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". does it have any palace in it? Yes, the main palaces are El Badi Palace, the Royal Palace and Bahia Palace.
wiki:21076442
El Badi Palace [SEP] Construction
According to al-Ifrani, construction of the palace began in December 1578 (Shawwal 986 AH), only a few months after the Saadian victory at the Battle of the Three Kings and Ahmad's accession to power, and took fifteen years, finishing in 1593 (1002 AH). French historian Gaston Deverdun, however, points out that the "Portuguese plan" of 1585 (an illustrated document providing important information on the layout of Marrakesh's kasbah at the time) shows us a fully-completed palace, while at the same time there also exist records of Ahmad al-Mansur purchasing marble for construction up until 1602, a year before his death.