When Emperor Ai died, his male favorite (commonly believed to be homosexual lover) Dong Xian was in command of the armed forces and was the most powerful official in government, and there was great uncertainty what was going to happen next.
Wang Mang immediately moved to remove all obstacles to power, but at the same time maintaining an appearance of faithfulness to the Han Dynasty.