Later in 409, Emperor Daowu was assassinated by his son Tuoba Shao (拓拔紹) the Prince of Qinghe, who then tried to take over the regime, but was defeated and killed by his older brother Tuoba Si the Crown Prince, who then took the throne as Emperor Mingyuan. During Tuoba Shao's coup, he tried to get officials to follow him by awarding them with many things, but Cui Hong declined them all, and Cui Hong was therefore praised by Emperor Mingyuan and created the Duke of Baima. In 414, Cui Hao started teaching Emperor Mingyuan the mystical texts "I Ching" and "Hong Fan" (洪範), and because of this and the accuracy of a number of Cui Hao's predictions, Emperor Mingyuan began to trust him greatly. In 415, during the middle of a severe famine, it was at the advice of Cui Hao and Zhou Dan (周澹) that Emperor Mingyuan stopped the plan of moving the capital from Pingcheng (平城, in modern Datong, Shanxi) to Yecheng, as Cui and Zhou were concerned that moving the capital would quickly expose the Xianbei's numerical inferiority to the Han, leading to rebellions. Later that year, when an unusual astrological sign that portended the destruction of a state appeared, it was Cui Hao who made the prediction that it foretold Later Qin's destruction, and after Later Qin fell in 417, not only the emperor but the other officials became impressed at Cui Hao's abilities.