It was founded in the 11th century, and the current temple dates to a reconstruction in the 15th century during the Ming Dynasty.