There is no family name for the Japanese Imperial Family but the Chinese past monarchs had a family name and in principle, women with a different family name became the empress.
日本の皇室には、そもそも姓がなく、名字も当然ないが、中国の歴代王朝の君主は姓を持ち、皇后には原則として異姓の者がなった。