 It was recorded as having 42,502 households in 609.Under the Tang, Yanmen Commandery was part of Hedong Circuit until it was abolished and replaced by Dai Prefecture in 618, although it was temporarily restored between 742 and 758.During the Tang, the name was retained as an honorary title