After Japanese invasion of Taiwan in 1874, Viceroy of Liangjiang Shen Baozhen was appointed to build the fortress for defensive purpose. The wall of fortress between North Gate and West Gate is the most well maintained section of Hengchun Fortress.