Ai's young cousin Emperor Ping of Han was appointed emperor of the Han dynasty, with Wang Mang acting as regent.