|Matsumae, Hokkaidō, Japan|
|Type||Hirajiro (flatland castle)|
|Condition||The original gate to the inner citadel (itself a reconstruction) and remnants of the stone walls and embankments remain|
|Built by||Matsumae clan|
|In use||1596 to Meiji Restoration|
|Materials||Earth, stone, and wood|
Matsumae Castle (松前城 Matsumae-jō) is a castle located in Matsumae in Hokkaidō, Japan, and is the northernmost castle in Japan. The only traditional style Edo period castle in Hokkaidō, it was the chief residence of the han (estate) of the Matsumae clan.
First built in 1606 by Matsumae Yoshihiro under orders from the Tokugawa shogunate requiring his clan to defend the area, and by extension the whole of Japan, from the Ainu 'barbarians' to the north, it burned down in 1637 but was rebuilt in 1639. It once controlled all passage through Hokkaidō to the rest of Japan.
The present castle complex, which dates from 1854, was constructed to deter attacks by foreign naval forces. Only the 30-metre-high tenshu (main tower) and a gatehouse survived destruction following the Meiji Restoration, which began in 1868. However, the tenshu burned down in 1949 and a concrete replica was built in 1960.
All of the castle site is today a public park.