 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.