He ate and lived together with the villagers, sparing no effort, measuring the land and supervising the works every day. Seeing how hands-on he was, the villagers were all deeply moved, and each one vied to be first, working day and night without stopping. After several months of hard work, a sturdy city wall finally rose from the ground, encircling the village and keeping the bandits out. The villagers were overjoyed and grateful for Xiao Yunxian's virtue.
Once the wall was completed, Xiao Yunxian also thought that the villagers' children had no one to educate them, and that in the long run this would bring endless harm. He again summoned the elders and proposed: "Now that the bandit scourge is gone, the thieves in people's hearts are even worse. I think we should also establish a school, invite renowned teachers, and teach the children to read and write, to distinguish right from wrong, so that we may enjoy lasting peace."
Hearing this, the villagers all admired Xiao Yunxian's foresight and insight, and generously contributed money. Xiao Yunxian himself also took out his savings to buy books, brushes, and ink, and hired a teacher. Once the school was built, children from all around came to study there. From then on, the atmosphere in the village changed greatly; the sound of reading was heard everywhere, and thieves disappeared entirely. The villagers lived in peace and contentment, and all praised Xiao Yunxian as a living bodhisattva.
The deeds of Xiao Yunxian in building the wall and establishing the school became famous far and wide, and even reached the capital. The court several times sent officials to invite him to take office, but he politely declined each time. He always said: "I am but a humble commoner, unacquainted with officialdom; I only wish to stay by my hometown and do my small part. When I served as an official in the past, what I saw was mostly flattery and factionalism, which is truly not something people like us can do." The envoy had no choice but to report back to the court. From then on, the court knew his resolve could not be shaken, and no one dared to force him into office again. Xiao Yunxian, glad for the leisure, retired to the countryside.