About Yamen
A yamen was the administrative office or residence of a local bureaucrat or mandarin in imperial China. A yamen can also be any governmental office or body headed by a mandarin, at any level of government: the offices of one of the Six Ministries is a yamen, but so is a prefectural magistracy.