In 1276, the Mongol troops finally overtook the Sung capital at Hangzhou, and over the next few years they wiped up the small pockets of local resistance. Through patient propaganda and shrewd policies, Khubilai Khan had succeeded in doing what Genghis Khan had not been able to do with his mighty army. In keeping with his new image as the personification of Chinese virtues, Khubilai provided excellent care for the dowager empress and allowed most of the royal family to live in a wonderful palace with all the luxuries to which they had been accustomed.