 This major change in leadership solidified the power of the chancellor Yelü Yixin and his ally Yelü Renxian , a chancellor and military leader . When Yelü Renxian died in 1072 , Yelü Yixin began to view Emperor Daozong 's son and heir apparent , Prince Jun , as the only possible threat to Yelü Yixin 's power , and set in motion plans to eliminate the prince . He first eliminated Prince Jun 's mother , the emperor 's wife , by fabricating evidence that she had an affair with a palace musician . Believing Yelü Yixin 's trap , Emperor Daozong ordered his wife to commit suicide . Yelü Yixin then fabricated a coup by implicating his own enemies within the court of planning to depose of Emperor Daozong and place Prince Jun on the throne . While the emperor was initially unmoved , Yelü Yixin eventually convinced him to exile his son by creating a false confession . Prince Jun was immediately exiled , at which point Yelü Yixin sent assassins to eliminate the prince and his wife , preventing both the prince from being returned to power and Yelü Yixin 's plot from being discovered . Yelü Yixin 's treachery was eventually discovered when , in 1079 , he attempted to convince the emperor to leave the new heir at the palace during a hunting trip . When other members of the court protested that the young boy would be in mortal peril if left behind with Yelü Yixin , the emperor finally saw through Yelü Yixin . By 1080 Yelü Yixin was stripped of his rank and sent to a low @-@ ranking post outside of the capital . Shortly afterwards he was executed . 
