Dezong (born 742, China—died 805, China) was the temple name (miaohao) of the 10th emperor (reigned 779–805) of the Tang dynasty and the only emperor in the latter half of the dynasty to reign more than 20 years. In spite of his long reign, he never successfully controlled the militarists who commanded the provinces and ignored imperial decrees. In the latter part of his reign Dezong gave up interest in the government, confiding only in his eunuchs, whose power at court grew as a result. A poet, he often sent decrees to his ministers in verse.