The Prince of Wei schemed against Confucius and created turmoil. After nearly one year in Wei, Confucius left the State with his disciples. When they passed by Kuang City, Confucius was mistaken for Yang Hu whom they resented and thus they were besieged by the locals. At that time, Confucius and his disciples had run out of food and faced hostile weather. Yan Hui persuaded the locals to let him find a witness. On the fifth day, Yan Hui sent for Ning Wuzi to resolve the misunderstanding.