Participated in planning the change of Xuanwu Gate in the ninth year of Tang Wude, and won the first prize with Du Ruhui, Wuji and Houzhong. When Emperor Taizong ascended the throne, Fang was appointed as the secretariat, and Liang Guogong was appointed in eleven years. Fang has four sons, namely Fang Yizhi, Fang, Fang Yize and Fang, and Princess Gaoyang married Fang's second son, so Fang is Princess Gaoyang's father-in-law.
Fang has always warned his sons not to judge a book by its cover, not to be extravagant and extravagant, and collected the precepts of ancient and modern sages, printed them on the screen and distributed them to all families. The eldest son's room was inherited by immediate successor, who was a big official in the history of the Ministry of Rites in the early years of Emperor Gaozong. When Emperor Taizong was alive, his second son Fang Ai was especially loved by his wife Princess Gaoyang.
After the emperor ascended the throne, he wanted her husband to inherit the title of Duke of Fang Yizhi, so he falsely accused Fang Yizhi of being rude to himself. The emperor asked his uncle Wuji to try the case, but unexpectedly he tried the court coup planned by Fang and his wife Princess Gaoyang. A bunch of people were arrested, the princess committed suicide, love me, love my dog, and all the scholars were sent to Lingnan as criminals.