Northern Wei
Her ancestors were ancestral chiefs of a branch tribe of Tuyuhun, and later became vassals of Northern Wei. After Northern Wei conquered Northern Liang in 439, her great-great-grandfather Yifu Mogui (乙弗莫瓌) led his tribe into Northern Wei and became a Northern Wei general. For three generations following his, the Yifus married Northern Wei princesses, and their daughters often married Northern Wei imperial princes. Her father Yifu Yuan (乙弗瑗) was a provincial governor, and her mother was the Princess Huaiyang, a daughter of Emperor Xiaowen.