Guiyi Prefecture (AD 848–1036), also known as the Jinshan Kingdom of the Western Han (909–911) and the Dunhuang Kingdom of the Western Han (911–914), was a Chinese military district that was usually de facto independent but nominally subordinate to the Tang dynasty, the successive Five Dynasties, and the Northern Song dynasty. Guiyi Prefecture was controlled by the Zhang family from the second half of the 9th century to the 10th century and then the Cao family during the 10th and 11th century. Guiyi Prefecture was usually headquartered in Shazhou (沙州), modern-day Dunhuang.