Shen Pei
Kong Anguo was a native of Qufu in Lu, one of the many semi-autonomous kingdoms of the Western Han dynasty. He was the second son of Kong Zhong () and an eleventh-generation descendant of Confucius. He studied the "Classic of Poetry" and "Shangshu" ("Book of Documents") from the famous Confucian scholars Shen Pei and Fu Sheng. Kong also served in the court of Emperor Wu of Han as the Grand Master of Remonstrance ().