Wenkai Academy, the Martial Temple, and the Wenchang Shrine stand side by side in a row. In the 4th year of the Daoguang era (1824), Deng Chuan-an, the sub-prefect in charge of coastal defense at Lukang, proposed the construction of an academy; merchants from Quanzhou and Amoy responded with donations, and the building was completed in the 7th year of Daoguang (1827). Named “Wenkai Academy,” it commemorates the late-Ming Confucian scholar Shen Guangwen, whose courtesy name was “Wenkai.” The Lukang Wenwu Temple consists of three parts: Wenkai Academy on the left, the Wen Shrine in the center, and the Martial Temple on the right, forming one large complex collectively known as the “Wenwu Temple.”