Hu Yan studied ancient times since he was a child and has been reading hundreds of books, including astronomy, geography, law, medicine and divination. He is also very talented, reading and writing, and thinking a lot. Many famous elders in the village have made friends with him one after another. In the twenty years of Hongwu in the Ming Dynasty, Hu Yan was awarded the secretariat of Huating (now Pingliang, Gansu). Since then, he has embarked on his official career, successively serving as magistrate of a county, academician courtyard, lecturer, son of Zuo Shu and imperial academy. Hongxi changed to the Yuan Dynasty, retired due to illness, served as an official with the guests of the Prince, and still served as a wine sacrifice. Xuanzong acceded to the throne and resigned to Nanchang. He found an abandoned official residence on a hammock ten miles south of the city. After a little repair, he was indifferent and lived the rest of his life. ?