Why the palace was built.