Pei Yan
Shangguan Wan'er was the granddaughter of Shangguan Yi, a government official. After Shangguan Yi tried to depose Empress Wu, his whole family was executed except for Wan'er and her mother, Lady Zheng. They were protected by another official named Pei Yan.