In 618 Li Yuan proclaimed the Tang with its capital at Chang'an. Under Taizong (Li Shimin) - open remonstrance, light taxes and corvée - the Zhenguan era became the model of governance for later ages; the state's power ran on under Gaozong and Wu Zetian, and Xuanzong's Kaiyuan reign brought the summit, Chang'an the greatest and most cosmopolitan city of its day, thick with foreign merchants and envoys from every quarter. The three-departments system and the examinations matured; the zu-yong-diao tax and the fubing militia ran the state; the poetry of Du Fu and Li Bai, calligraphy, Buddhism (Xuanzang's pilgrimage) and woodblock printing all reached high summits. The An Lushan rebellion of 755 turned splendor to decline; after it, warlord satrapies, eunuch power and factional strife interwove, until in 907 Zhu Wen usurped the throne - twenty-one emperors, 290 years.