During the Tang Dynasty, the Han Chinese passed several laws that segregated non-Chinese people from Chinese people. In 779, the Tang Dynasty made a rule which forced Uighurs to wear their traditional ethnic clothing, not Chinese clothing. It also banned them from 'pretending' to be Chinese, and from marrying Chinese women. The Han Chinese disliked the Uighurs because they loaned money for interest.