Because the fort housed the emperor's palace, it included courts, personal quarters, baths, and more.