Road to the throne
His father Yang Jun was the third son of Emperor Wen of Sui and a younger brother of Emperor Yang. According to the Book of Sui, Yang Jun fell ill after his consort Lady Cui put poison in a melon for him, was removed from office for his extravagance, and died in 600, and Lady Cui was ordered to take her own life. The ministers argued that neither of the two sons of the Prince of Qin should succeed him because their mothers had both been deposed for crimes, and the officials of the Qin princedom were made chief mourners. After Emperor Yang came to the throne, he made Yang Hao Prince of Qin to carry on his father's line, and later made him Commandant of Heyang. According to the biography of Yang Xuangan in the Book of Sui, Yang Xuangan secretly plotted with his younger brothers to depose Emperor Yang and set up Yang Hao, and on the way back from the campaign against the Tuyuhun he planned to attack the emperor's travelling palace, but gave up when his uncle Yang Shen stopped him. Later, because Yang Hao was in contact with Yuwen Shu, who was on his way to suppress the rebellion of Yang Xuangan, he was impeached for a feudal prince's dealings with a court official and removed from office. Yang Jun's son by a concubine, Yang Zhan, was also removed from office as implicated in the case of Yang Hao. In 618 Yuwen Huaji killed Emperor Yang at Jiangdu. According to the Zizhi Tongjian, Yuwen Huaji first tried to set up Yang Xiu, Prince of Shu, but was overruled by general opinion, and killed Yang Xiu and his sons. The members of the Sui imperial clan and its relatives by marriage were all killed, but Yang Hao alone was spared through the arrangements of Yuwen Zhiji, who had long been on visiting terms with him. Yuwen Huaji set up Yang Hao as emperor and styled himself Grand Chancellor. According to the Zizhi Tongjian, Yang Hao was made to live in a separate palace, did nothing but sign edicts, and was kept under watch by soldiers.
Reign and death
When Yuwen Huaji came as far as Pengcheng with Yang Hao in his hands, the court of Yang Tong, Prince of Yue (the Huangtai ruler), who had been set up as emperor at the Eastern Capital, invited Li Mi to its side. The biography of Yang Tong in the Book of Sui says that Yang Tong sent envoys out of fear, while the biography of Yuan Wendu says that Yuan Wendu urged Yang Tong to do so. When his troops deserted him, Yuwen Huaji lamented that he could not go without being emperor for even a single day, killed Yang Hao, and proclaimed himself emperor at Wei County. The biographies of Yuwen Huaji in the Book of Sui and the History of the Northern Dynasties, the Zizhi Tongjian, and the annals of Emperor Gaozu of Tang in the Old Book of Tang say that Yang Hao was poisoned, while the biographies of Yang Hao in the Book of Sui and the History of the Northern Dynasties and the annals of Emperor Gaozu in the New Book of Tang do not say how he was killed, and both biographies of Yang Hao say that Yuwen Huaji killed him after proclaiming himself emperor. Yang Zhan was also killed by Yuwen Huaji, but the Book of Sui does not say when.
Translated from the Japanese text of this site, which is written from the official histories. Years are the Western calendar years of the dates, as in English reference works. Months are omitted because the histories use the Chinese lunar calendar.