Emperor Heizei
When Emperor Kanmu died in 806, his son Crown Prince Ate took the throne as Emperor Heizei. Heizei in turn appointed his younger brother Prince Kamino as crown prince. This decision is thought to have been influenced by Kanmu's opinion, and the fact that Heizei was sickly and his children were still young. Even so, an internal succession dispute in the court could not be avoided. The new emperor's younger brother by another mother, Prince Iyo, was accused the next year of plotting a coup, and ultimately committed suicide.