The origins of the modern city come from the 9th century , when PERSON@1 I ordered the construction of a small palace in the same place that is today occupied by the Palacio Real .

The origins of today 's town really starts in the 9th century when PERSON@1 I had a small palace built where the Palacio Real stands today .
