What was the site of the royal palace in the 12th century?