Return to prosperity
On June 18, 618, Gaozu took the throne, and the Tang Dynasty was established, opening a new age of prosperity and innovations in arts and technology. Buddhism, which had gradually been established in China from the first century, became the predominant religion and was adopted by the royal family and many of the common people.
Chang’an (modern Xi’an), the national capital, is thought to have been the world’s biggest city at the time. The Tang and Han are often referred to as the most prosperous periods of Chinese history.
The Tang, like the Han, kept the trade routes open to the west and south and there was extensive trade with distant foreign countries and many foreign merchants settled in China.
From about 860 the Tang Dynasty began to decline due to a series of rebellions within China itself, and in the previously subject Kingdom of Nanzhao to the south. One of the warlords, Huang Chao , captured Guangzhou in 879, killing most of the 200,000 inhabitants including most of the large colony of foreign merchant families there. In late 880 Luoyang surrendered to him and on 5 January, 881 he conquered Changan. The emperor Xizong fled to Chengdu and Huang established a new temporary regime, which was eventually destroyed by Tang forces. However, another time of political chaos followed: the Five Dynasties and Ten Kingdoms Period.

