 Yan Yan served as commandant of Wucheng (Wu City) in the State of Lu.He was said to have succeeded in transforming the character of the people of Wucheng by teaching them ritual propriety and music, and was praised by Confucius.After Confucius died, Ji Kangzi, prime minister of Lu, asked Yan why Confucius was not as widely mourned as Zichan, prime minister of the State of Zheng.