At the end of the Tang Dynasty, there were many "defeated emperors", and Tang Emperor was definitely one.

It is reasonable to say that as the fifth son of the emperor, Li Yan was originally not qualified to inherit the throne, and his position was determined by the specific circumstances at that time. At that time, the Li-Tang Dynasty was already weakening day by day, social contradictions were becoming more and more acute, and the people were not happy.
Tang Yizong had eight sons in his lifetime, but because the mothers of these sons were not all favored, and Tang Yizong's empress did not give birth to concubines for him, Tang Yizong was always undecided about the selection of the crown prince, and he did not appoint a prince for a long time.
This gave the eunuchs an opportunity to push this emperor onto the stage of history.
Tang Yizong, who had been obsessed with Buddhism all day, entrusted all the affairs of the imperial court to Wei Baoheng, which made Wei Baoheng monopolize the power to exclude other prime ministers, crack down on dissidents, and be arbitrary.
In June of the fourteenth year of Chengtong (873 AD), Yizong fell seriously ill and his treatment was ineffective, and his condition worsened in July. At this time, Yizong knew that time was short, and he wanted to arrange the aftermath, but his contact with the outside world had long been completely cut off by the eunuchs.
The emperor could not see the prime minister and the courtiers, and the power to choose the heir to the imperial throne naturally fell into the hands of the eunuchs.
On the day of Yizong's critical illness, Liu Xingshen and Han Wenyue, the two most powerful eunuchs in the palace, began to investigate which prince was more suitable for their control. From the time of Emperor Xianzong of Tang, the Shen Ce Army, which controlled the main armed forces in the capital and was responsible for guarding the palace, became the most important force in the palace coup, so the attitude of the commander of the Left and Right Shen Ce Army was very important for the selection of a new monarch.
Liu Xingshen and Han Wenyue inspected Tang Yizong's sons one by one, and they found that the current Pu King Li Yu was both young and playful, and his prestige was not high, neither enough ability nor a solid backstage, which was very easy to control. So they chose to make Li Yu crown prince, and then eliminated Yizong's other sons.
In this way, the 12-year-old Li Yu successfully ascended the throne and became emperor, and changed his name to Li Yan (李儇), known as Emperor Tang in history.
Because Tang Xianzong ascended the throne at an early age, he did not understand any major national events, so he entrusted all these to his subordinates to do, and only knew how to play non-stop every day, which was also the origin of his temple name.
In the second year of Emperor Xuanzong's reign, the name of the country was changed to Qianfu, and during the tang dynasty, the politics of the Tang Dynasty became more chaotic.
In the fourteenth year of Xiantong (873 AD), Nanzhao, located in the southwest of the Tang Dynasty, had grown to the point of threatening the Tang Dynasty, and the king of Nanzhao set Yunnan as his base and then sent a large number of troops to Bashu and Qiannan.
At this time, the Tang Dynasty army was already very corrupt, had no combat strength to speak of, and could not stop the offensive of the Nanzhao army at all, so that the Nanzhao army drove straight in and attacked all the way to Chengdu. Then they looted the thriving city and set a fire as they left.
In the face of the gradual defeat and retreat of the Tang army, the imperial court had to constantly change the generals, but they could not successfully block the offensive of the Nanzhao army, and finally sent the meritorious general Gao Jiao, who was defeated and victorious, and fought the Nanzhao army back to Yunnan and recovered the lost land.
Before the Tang army could celebrate the victory in repelling the Nanzhao army, the Huangchao Rebellion broke out. Under the pressure of Huang Chaojun, Emperor Tang was forced to flee to Chengdu and was not able to return to Chang'an until the first year of the Guangqi Dynasty (885 AD).
However, in the face of the chaotic overall situation, Emperor Xuanzong never stopped playing in his life.
His daily life is very rich, either eating, drinking, or fighting, or there is no national event.
When Zong was young, although he did not like to read and deal with government affairs, he was still a very intelligent person. It can be said that Emperor Xianzong is very knowledgeable and talented in playing, and what he plays is fine, such as riding, archery, dance frames, fencing, cockfighting, chess, etc., Emperor Xianzong can be said to be proficient in everything.
Emperor Xianzong was very good at keju, and there was a good man named Shi Wild Boar by his side, who was very popular with Emperor Xianzong and often played with the emperor. One day, Emperor Xianzong said triumphantly, "If you set up a batting officer and go to the exam, you will definitely get the title." Shi Wild Boar replied, "Your Majesty went to take the exam, and if you meet Yao and Shun as the chief examiners, I am afraid that Your Majesty will fall behind."
It can be seen that although he is a good person, Shi Wild Boar also sees that it is not the work of Ming Jun that Emperor Xianzong ignores the government and plays all day, so he boldly and skillfully advises. However, at this time, the decline of the country was no longer something that Emperor Xuanzong alone could reverse, and in the face of the fierce and domineering and powerful eunuch clique, Emperor Xianzong could only rely on Yile to save his life and throne, and how could he talk about emulating Yao and Shun and becoming the Holy Lords of the Ming Dynasty?
However, these thoughts could not be talked about to anyone, and in the face of the irony of the stone wild boar, he just smiled, did not explain, and did not blame. In this way, he enjoyed himself daily under the guidance of the eunuchs, and in order to make him hesitate to enjoy himself without worrying about state affairs and rectifying the imperial program, the eunuchs wantonly plundered the goods for the Emperor to squander.
When Emperor Xianzong ascended the throne at a young age and grew up in the hands of women and eunuchs, he himself did not understand the affairs of the world, coupled with the deliberate guidance of the eunuchs, as the Son of Heaven, Emperor Xianzong did not understand the situation of the country's political darkness and the people's lack of livelihood.
Because he likes to play, Emperor Xianzong often plays intimately with a group of retinues in the palace, and when he is happy, he often spends money like land to reward a large amount of gold treasures to those musicians and tricks who play with him, which shows that he spends a lot of money and will not sympathize with the people's livelihood, in Tang Qizong's concept of "under the whole world, can not be the royal land", so he can not hesitate to squander the people's fat and people's ointment.
Soon after, the Huangchao Rebellion broke out, and Emperor Xuanzong fled in all directions. In the fourth year of Guangqi, Emperor Xuanzong changed the name of the country to "Wende", after which Emperor Xuanzong fell ill and died not long after.
As the youngest emperor in the history of the Tang Dynasty, during the fourteen years of emperor's reign, emperor Xuanzong was dark, war-torn, and life-destroying, and Emperor Xianzong also enjoyed the pain of turmoil and displacement while enjoying his wealth, and he was only 27 years old when he died.
During the reign of Emperor Xianzong, the country's situation began to take a sharp turn, and as an emperor, Emperor Xianzong did not do anything "good", but he was not a fierce and cruel person, but he was not born at the right time.
In that environment, Emperor Xianzong didn't even understand what a Mingjun was, and he didn't have the opportunity to try to be a Mingjun.
Because the fate of the fall of datang has been irreversible.
Thank you for watching, paying attention to me, and learning more about it.