Wanfu Temple was originally the residence of Ruan Jun, a general under Koxinga, built during the Yongli Reign of Ming Dynasty (1646~1683). It is a city-designated historic site. During the Yongli Reign of Ming Dynasty (1656), Ruan died while stationed on Zhoushan. Three years later his wife traveled to Taiwan with Zheng Jing along with Ming dynasty descendants and settled behind the palace of King Ning Jing on this spot where she chanted scripture, abstained from eating meat and worshipped Buddha the rest of her life. After Madam Ruan died, the residence became Madam Ruan Temple and was later named Wan Fu Temple. The whitewashed wall is the original one, over 300 years old, and was intended to stop people outside looking into the building; it is also said to have fengshui (also known as geomancy) and exorcism of evil spirits functions.