From the establishment of the Tang Dynasty in 618 AD to its fall in 907 AD by Zhu Wen, the Tang Dynasty lasted for 289 years. The Tang Dynasty is generally divided into two periods: the early period and the later period. The Anshi Rebellion serves as the dividing line; the earlier period represents a time of prosperity, while the later period marks the decline.