In the countryside, Yan Gongsheng relied on his status as a local gentry member and, together with Hu Tongyi, monopolized legal cases. He fabricated facts and intimidated the villagers.
Hu Tongyi often went through the countryside looking for disputes and inciting lawsuits. For example, when Zhang Laosan and Li Laosi argued over a well, Hu Tongyi would go stir up trouble: "Zhang Laosan, this well is originally yours, why not sue him? Master Yan can help you." He would then turn around and say to Li Laosi: "Li Laosi, you've used this well for decades, how dare he take it? Master Yan said you should just sue, he will definitely help you." Both families, incited, went to the county to file lawsuits, and Hu Tongyi profited from it.
Yan Gongsheng reaped the benefits without effort, and the villagers were miserable but dared not offend him. In his hometown, he often sought pretexts to extort his neighbors. Once his servant injured a neighbor's child, and when the neighbor came to reason, Yan Gongsheng instead accused the neighbor of poor discipline, saying the child had offended a noble. He also threatened: "I am a proper local gentry member; you unruly people, do you dare to oppose me? Watch out for getting sued!" The neighbor, fearing his power, had to swallow the insult.
Yan Gongsheng bullied people with his power, treated the law as nothing, and ruled his hometown as if he were a local emperor. Under the name of gentry, he acted like a despotic bully, which people deeply resented.