Original: The origins of the modern city come from the 9th century, when Muhammad I ordered the construction of a small palace in the same place that is today occupied by the Palacio Real.
Simplified: The origins of today’s town really starts in the 9th century when Muhammad I had a small palace built where the Palacio Real stands today.