Twenty-four yamen

二十四衙门 Twenty-four yamen was an institution of eunuchs serving the Emperor and his household in the Ming Dynasty. It comprised the Twelve Directorates, Four Offices, and Eight Services—these are collectively referred to as the Twenty-four Yamen.