Silk remained confined to China until the Silk Road opened at some point during the later half of the 1st millennium BC. China maintained its virtual monopoly over silk production for another thousand years. Not confined to clothing, silk was also used for a number of other applications, including writing, and the color of silk worn was an important guide of social class during the Tang dynasty.