Guzgan (Guzganan or Quzghan, in Arabic Juzjan or Juzjanan) is the name of a historical region and early medieval principality in what is now northern Afghanistan.
The area was known as "Guzgan" or in the plural form "Guzganan", whence Arabic "Juzjan"/"Juzjanan". Orientalist Vladimir Minorsky derived the name from a word meaning "walnut", a product for which the area is still known today. The 19th-century scholar Henry George Raverty suggested that the plural form emerged from the division of the country in two parts by the river Murghab.
The boundaries of Guzgan were never well defined and fluctuated wildly over time. They certainly bear no relation to the modern administrative boundaries of Jowzjan Province, named after it, or the neighbouring Faryab Province, but historically included the lands around the towns of Maymana (capital of Faryab province), Andkhuy, Shibarghan (capital of Jowzjan Province) and Sar-e Pol (capital of the namesake province). Lying on the transition zone between the Central Asian steppes and the Iranian Plateau, the region was characterized by a mixture of sedentary, urban populations in the fertile river vallyes, alongside nomad tribes engaged in pastoralism, which is singled out as the region's main source of wealth by medieval geographers. Its location also meant that it was often used as a route for armies marching to and from Iran to Central Asia.
In the early 7th century, the region of Guzgan was counted as part of Tokharistan. It was conquered by the Arabs under al-Ahnaf ibn Qays in 653/4, as part of the Muslim conquest of Persia. In 737, the area was the site of the decisive Battle of Kharistan between the Arabs under Asad ibn Abdallah al-Qasri, and the Turgesh under the khagan Suluk. In 743, the Alid Yahya ibn Zayd, son of Zayd ibn Ali, rose in revolt but was defeated and killed at Guzgan by the Umayyad governor, Nasr ibn Sayyar. His tomb was later a site of pilgrimage. In Abbasid times, the local governor resided in Anbar, possibly modern Sar-e Pol, but other accounts mention Shibarghan as the capital, and the geographers al-Muqaddasi and Yaqut al-Hamawi considered al-Yahudiyya (modern Maynama) as the capital.