Maruoka Castle was constructed by Shibata Katsutoyo in 1576. Katsutoyo was nephew and adopted son of Shibata Katsuie, one of Oda Nobunaga's leading generals. After Shibata Katsutoyo died of illness during the Battle of Shizugatake in 1583, the castle was given to the Aoyama clan. However, the Aoyama sided with the Western Army under Ishida Mitsunari during the Battle of Sekigahara and were thus dispossessed by the victorious Tokugawa Ieyasu. Ieyasu awarded Echizen Province to his son, Yūki Hideyasu, who in turn created a 26,000 kokuholding centered at Maruoka for his retainer, Imamura Moritsugu. In 1612, due to an O-Ie Sōdō within Fukui Domain, the Tokugawa shogunate raised Maruoka Domain to 40,000 koku and assigned it to Honda Narishige, the son of Honda Shigetsugu, one of Ieyasu's leading generals. Due to Honda Narishige's efforts at the Siege of Osaka in 1624, the kokudaka of the domain was further raised to 46,300 koku. His son and grandson completed the castle and the surrounding jōkamachi. However, his great-grandson, Honda Shigemasu was an alcoholic and incompetent, and was dispossessed by the shogunate in 1695. The Honda were replaced by Arima Kiyosumi, a descendant of the Kirishitandaimyō Arima Harunobu. The Arima clan continued to rule Maruoka for eighth generations until the abolition of the han system in July 1871. The castle remained property of the Arima until donated to the town in 1901.
Current situation
After the Meiji restoration, almost all Japanese castles around the country were destroyed; however, Maruoka Castle is one of just twelve castles remaining which managed to keep its original donjon. The relatively small, 3-story donjon claims to be the oldest in the country, a claim which is challenged by both Inuyama Castle and Matsumoto Castle. The donjon has a number of unique design features, including stone roof tiles and a hidden floor not apparent from the exterior, but in general is very similar to the contemporary Inuyama Castle in design. The donjon collapsed during the 1948 Fukui earthquake, but was rebuilt in 1955 using 80% of the original materials. It was designated an Important Cultural Property in 1950. A number of the castle gates also survive in private hands, including one at the temple of Kōzen-ji in Komatsu, Ishikawa and one at the temple of Renshō-ji in the city of Awara, Fukui. The former castle grounds are now a public park with a small museum, and contain some remnants of the ramparts and moats. The area is famed for its sakura trees in spring.