The Confucian Temple of Shanghai is a folk Confucian temple located within the old city of Shanghai. The Confucian Temple was first founded during the Yuan Dynasty, when Shanghai, once a small fishing village, was elevated to the status of a county seat. It was the most prestigious learning institution of the county, as in ancient times a Confucian Temple was typically a combination temple and school. Over the following centuries, it was rebuilt several times. The temple creates a stark contract with the modern buildings surrounding it and allows one the chance to gain a sense for Confucian culture and learning.