Xuanwei is a county-level city located in the northeastern region of Yunnan Province, China. Geographically, it serves as a border area situated along the northern and eastern edges of Guizhou province.
The city operates under the administrative jurisdiction of the prefecture-level city of Qujing. It is characterized by its position within the regional infrastructure of southeastern China.