The ancestors of the Dai in Yunnan were the Dianyue (滇越) group mentioned in the "Records of a Historian" by Sima Qian. In "Records of the Later Han Dynasty", they were called Shan, and in "Records of the Local Countries in Southern China", they were called "Dianpu". In the Tang Dynasty, they were mentioned as Black Teeth, and as Face-Tattooed in a book named A "Survey of the Aborigines" by Fan Chuo. These monikers were given based on their customs of tattooing and teeth decoration. In the Song Dynasty, they were called Baiyi Man, and in the Yuan Dynasty were called Jinchi Baiyi. Until the Ming Dynasty, they were generally called Baiyi and after the Qing Dynasty, they were called Baiyi. The modern Dai people can be traced back to Dianyue, a subgroup among the ancient Baiyue groups.