Emperor Heizei (平城天皇, Heizei Tennō, 774 - August 5, 824) was the fifty-first emperor of Japan, according to the traditional order of succession, and reigned from 806 to 809.
His personal name is Prince Ate and he is also sometimes referred to as Emperor Heijō (Heijō Tennō).
The name Heizei comes from the official name of Nara, Heizei-kyō, and he was often referred to as Nara no Mikado ("the emperor of Nara").
Heizei was the son of Emperor Kanmu and Fujiwara no Otumoro. He had 4 wives, and 7 imperial children born from ladies of the court:
Before his accession to the throne, his affair with Fujiwara no Kusuko, the mother of one of his concubines, caused a scandal which almost cost him his rank of crown prince, his father considering the possibility of removing him from it.
However, he became emperor after his father's death in 806. In 809, ill, he abdicated in favor of his younger brother prince Kamino, who then became emperor Saga.
After his abdication, Heizei moved to Nara and planned to move the capital from Kyoto to Nara once again. Emperor Saga, pretending to agree with him, ignored this advice and tried to reduce the influence of the former emperor.
In 810, Heizei fomented a rebellion with Kusuko, but was defeated by the imperial army, led by the shogun Sakanoue no Tamuramaro.
Following this event, Kusuko committed suicide and Heizei became a Buddhist monk. His son, Crown Prince Takaoka is then stripped of his rank, and Saga appoints his own son as Crown Prince.