Historical records show that when the Qing forces led by Shi Lan attacked Taiwan, Zhu Shi-gui, Ming dynasty Prince of Ningjing, resolved to die for his country; his five concubines decided to die too and hanged themselves from a beam in the palace. After they died, Zhu Shu-gui personally buried them and then committed suicide. Wufei Temple was built in 1683. It is a single courtyard and two-wing style building and has a small shrine at the side, Yi Ling Jun Tomb(義靈君墓), that enshrines two servants who died alongside the concubines.