First of all, Zhu Yuanzhang was not a noble, but a poor peasant. From this aspect, he can gain the farmers' sense of identity. Although there are many kings in history who are very kind to farmers, after all, many kings are of very noble birth, which makes many farmers at the bottom of society dream of it. Zhu Yuanzhang was a child of a poor peasant family. From the sense of identity, he can win the hearts of farmers.
Secondly, Zhu Yuanzhang drove away the nomadic people in the north, let the Han people with farming civilization stand up again, and improved the status of farmers. For various reasons, before Zhu Yuanzhang established the Ming Dynasty, farmers were all under the jurisdiction of nomadic people, and their status and life were not ideal. Zhu Yuanzhang, on the other hand, took advantage of the chaos in the world to successfully drive away the nomadic people and establish the Han regime. The most important thing is to make farmers' lives better and better, which naturally gains a lot of people's hearts.
Finally, Zhu Yuanzhang not only introduced many policies to increase the number of farmers, but also promoted many officials with civil and military backgrounds. Different from other kings' reuse of the scholar-bureaucrat class, Zhu Yuanzhang used more officials from peasant backgrounds, which really gave many children from peasant families a fair chance. This not only well maintained Zhu Yuanzhang's Ming Dynasty, but also made many farmers like Zhu Yuanzhang, the king who came out of the peasant class. So compared with other kings, Zhu Yuanzhang is the most popular king in history in my heart.