It was located on an earlier Almohad fortress and acted as the royal residence and center of power in the city in many periods.
The palace was originally situated on a previous Almohad fortress and functioned as the royal residence and hub of power within the city during numerous time frames.