Defeat by the Chimei (Red Eyebrows)
In the winter of 24 AD, there was an ominous development. The Chimei troops stationed at Puyang were weary and wanted to go home. Their leaders felt that if they did so, Chimei forces would scatter and would be unable to be gathered again when needed. So, to give them a purpose for remaining together, their leaders decided to announce that they were attacking the imperial capital Chang'an, divided the troops into two armies and then headed west.
Liu Xiu, while he had a fairly strong force at his disposal, chose to stand by and wait for the Chimei to destroy the Gengshi Emperor. Liu Xiu used the Henei region (modern northern Henan, north of the Yellow River) as his base of operations because of its strategic location. The Chimei armies met up at Hongnong (弘農, in modern Sanmenxia, Henan), and defeated the armies that the emperor sent to stop them.
In 25 AD, Fang Wang (方望), the former strategist for the local warlord Wei Xiao (隗囂), and Gong Lin (弓林) led a force of several thousand men to occupy Linjing (臨涇, in modern Qingyang, Gansu) and kidnapped the former Western Han pretender Liu Ying to restore him. The Gengshi Emperor sent the chancellor Li Song (李松) to attack and kill Liu Ying.
In the summer of 25, Liu Xiu finally made a formal break with the emperor, after his forces and those of the emperor fought over control of the Henei and Luoyang regions. Liu Xiu declared himself emperor, establishing the regime known later as the Eastern Han Dynasty. His general Deng Yu then captured Shanxi, further reducing the Gengshi Emperor's strength. Feeling trapped, a number of the emperor's generals conspired to kidnap him and flee back to their home region of Nanyang in modern-day Henan. Their plan was uncovered and many were executed. However, one general, Zhang Ang (張卬) occupied most of Chang'an, forcing the Gengshi Emperor to flee, just as the Chimei forces were approaching.
In the meantime, the Chimei decided that they also needed their own emperor. They found three descendants of Liu Zhang, Prince of Chengyang, who had been very popular with the people of his principality (where many Chimei soldiers came from) and who was worshipped as a god after his death. After drawing lots, the youngest of Liu Zhang's descendants, the 15-year-old Liu Penzi was chosen and declared emperor. However, the young "emperor" was not given any power. Rather, he was effectively a puppet of the Chimei army.
Generals still loyal to the Gengshi Emperor were eventually able to evict Zhang Ang from the capital, but by that time the situation was desperate. Zhang and his allies surrendered to the Chimei and, working with them, attacked Chang'an, which fell quickly. The emperor fled, followed by his few remaining loyal followers, including Liu Zhi (劉祉) the Prince of Dingtao and Liu Gong (劉恭) the Marquess of Shi (Liu Penzi's elder brother). They were eventually made prisoners by one of the Gengshi Emperor's generals, Yan Ben (嚴本), who, planned to hold them as bargaining chips. When Liu Xiu heard about the fall of Chang'an, he created the emperor Prince of Huaiyang, in absentia, and decreed that anyone who harmed the Prince of Huaiyang would be severely punished and that anyone who delivered him to Eastern Han would be rewarded. (This appears to be basically political propaganda on Liu Xiu's part.) When news of Chang'an's fall arrived in Luoyang, the city surrendered to Liu Xiu, who entered the city and made it his capital.
In the winter of 25 AD, after being held by Yan Ben for a few months, the Gengshi Emperor realised that his situation was futile and requested Liu Gong to negotiate surrender terms. A promise was made that he would be made the Prince of Changsha. Emperor Penzi's general Xie Lu (謝祿) arrived at Yan's camp and escorted the Gengshi Emperor back to Chang'an to offer his seal (seized from Wang Mang) to Emperor Penzi. However, the Chimei generals, notwithstanding the earlier promise, wanted to execute him. It was only Liu Gong's final intercession (he threatened to commit suicide at the execution site) that allowed the Gengshi Emperor to be spared and he was created the Prince of Changsha. However, the Gengshi Emperor was forced to stay in Xie Lu's headquarters, with Liu Gong protecting him.
The Chimei generals were even less able to govern the capital than the emperor, because they were unable to control their soldiers from pillaging from the people. The people began to yearn for the return of the Gengshi Emperor. Zhang Ang and his allies, afraid of what might happen if the emperor returned to power, persuaded Xie Lu to strangle him. Liu Gong hid his body in a secure location, and years later, after Eastern Han had completely captured the Chang'an region, Liu Xiu had the Gengshi Emperor's body buried with princely honours at Baling (霸陵), near the tomb of Emperor Wen.