The exact meaning of the name is debated.
From medieval times until around the beginning of the 20th century, the entire country of Morocco was known as the "Kingdom of Marrakesh", as the kingdom's historic capital city was often Marrakesh.