In 1657, he successfully achieved the rank of juren (举人) or quasi-master's degree provincial level. He then became the mayor of a town in Shanxi province. Later in life he became an author, philosophizing about politics and life.
