 The early dances may be folk dances or ritual dances, some of which developed into court dances.The most important of the early dances served important ritual and ceremonial roles and are known as "yayue" which continued to be performed at the imperial court until the Qing dynasty.A profusion of dances in popular and court entertainment as well as folk dances have been recorded in ancient texts.