Shanghang (simplified Chinese: 上杭县; traditional Chinese: 上杭縣; pinyin: Shàngháng Xiàn; Pe̍h-ōe-jī: Siôngháng Gnuâi; Hakka: Sông-hông-yen) is a county in southwest Fujian Province, China, bordering Guangdong Province to the southwest.
Part of Shanghang County is accessed by China National Highway 319, coming west from Xinluo District (新罗区), the municipal seat.
The county seat, conventionally called Shanghang itself but officially Linjiang Town (临江镇), is reached by Route 205.
The county's most famous cultural-historical attraction is in the town of Gutian (古田镇), namely the site of the Gutian Congress in December 1929.
The county administers 17 towns (镇; zhèn), 3 townships (Chinese: 乡; pinyin: xiāng), and 2 ethnic townships (Chinese: 民族乡; pinyin: mínzú xiāng).