Li Longji was born in the autumn and August of the first year of Diaogong (685) in Luoyang, the capital of Wuyin. He is wise and decisive, versatile, knows rhythm, is good at calligraphy, and is handsome. During the Yongchang period (689), Li Dan's eldest brother was succeeded as Emperor Li Hong of Xiaozong, first named King Linzi, and later changed the King of Chu to the driver of Luzhou bus.
In the first year of Tang Long (7 10), Li Longji and Princess Taiping jointly launched the "Tang Long Political Revolution" to assassinate Wei Hou. In the first year of his birth (7 12), Li Dan Zen was located in Li Longji. After that, he was granted the death of Princess Taiping and gained the supreme sovereignty of the country. In the early stage, we paid attention to bringing order out of chaos, appointed Yao Chong, Song Jing and other sages, and made great efforts to govern the country. In the later period of his reign, he cherished Yang Guifei, neglected state affairs, favored Li, Yang and other treacherous officials, made mistakes in decision-making, and reused An Lushan and other ethnic groups beyond the Great Wall, trying to stabilize the frontier of the Tang Dynasty, which led to the eight-year Anshi Rebellion and laid the foundation for the decline of the Tang Dynasty. In the fifteenth year of Tianbao (756), Prince Hengli ascended the throne, honoring him as the emperor's father. Baoying died in the first year (762) at the age of 78 and was buried in Tailing.