Three dead in 5.4-magnitude quake in Xinjiang: state media
Footage showed buildings swaying in the dark, leaving some houses with their roofs caved in afterward.
"The earthquake caused three deaths and 65 houses were damaged," state broadcaster CCTV reported, adding that there were 10 aftershocks of which the largest magnitude was 3.4.
After houses and livestock sheds collapsed, leaders of an affected village set up a temporary resettlement site.
China is regularly hit by earthquakes, especially in its mountainous western and southwestern regions.
In February 2003, a powerful 6.8-magnitude quake killed 268 people in Xinjiang and caused significant damage.
Following Wednesday's earthquake, train services between regional capital Urumqi and areas such as Hotan and Aksu were delayed, the official Xinhua news agency reported.