Qin Shi Huangdi ruled the unified China directly with absolute power. In contrast to the decentralized and feudal rule of earlier dynasties the Qin set up a number of 'commandries' around the country which answered directly to the emperor. Nationwide the philosophy of legalism was enforced and publications promoting rival ideas such as Confucianism were prohibited. In his reign unified China created the first continuous Great Wall with the use of forced labor. Invasions were launched southward to annex Vietnam. After the emperor's death rebels rose against the Qin's brutal reign in new civil wars. Ultimately the Han Dynasty arose and ruled China for over four centuries in what accounted for a long period in prosperity, with a brief interruption by the Xin Dynasty. The Han Dynasty played a great role in developing the Silk Road which would transfer wealth and ideas for millennia, and also invented paper. Though the Han enjoyed great military and economic success it was strained by the rise of aristocrats who disobeyed the central government. Public frustration provoked the Yellow Turban Rebellion – though a failure it nonetheless accelerated the empire's downfall. After 208 AD the Han Dynasty broke up into rival kingdoms. China would remain divided until 581 under the Sui Dynasty, during the era of division Buddhism would be introduced to China for the first time.