It was occasionally used as a Royal Palace for the kings and