The education projects not only affected the immigrants but also greatly transformed the indigenes. The Yuan Dynasty began to advocate changing native customs. The introduction and intensification of Han agricultural production and Confucian education marked the beginning of many significant changes in Yunnan society. Confucian ideas, dress, rituals, ceremonies such as weddings and funerals, and festivals were sponsored by the imperial state and gradually took root. For instance, Sayyid'Ajall Shams Al-Din taught indigenous peoples to perform the Confucian rituals of kneeling (kowtow), match-making for marriage, marriage ceremonies, funerals, and ancestral worship. He also presented native chieftains with clothes, hats, socks, and shoes to replace their "barbarian" dress.123 As a result of state efforts, not only the Mongols, Muslims, and Han people but also indigenous people went to school.124 Native elites started to send their children to school, pursuing political interests for the family. The Wang family seemed to be such a case.