22°59′25″N 120°12′15″E / 22.99028°N 120.20417°E / 22.99028; 120.20417[1] The temple was built in 1665 during the Koxinga dynasty, when Zheng Jing (Koxinga's son) approved of the proposal by Chief of General Staff Chen Yonghua to construct the temple on the right side and the National Academy (to be called "Guo Xue" hereafter) on the left side of a hill, with both facing the south.
In 1712, following a major renovation by Taiwan Chief Administrator Chen Ping (陳璸), the compound retained its original layout of Wen Miao to the right and Guo Xue to the left.
After 1895, Taiwan was under Japanese rule, the Wen Miao was once again used as a public school and military barracks and was considerably damaged.
[3] Today the temple serves as a popular tourist attraction and also preserves ancient Confucian ceremonies, which are conducted on a regular basis.
The temple is the only institution in Taiwan that still practices the offering of three different animals, which are goat, pig and ox, to worship Confucius.