The Jiming Temple (Chinese: 鸡鸣寺) is a renowned Buddhist temple in Nanjing, Jiangsu, China. It is one of the most antique temples in Nanjing. The temple is located near the Xuanwu Lake in central Nanjing. Jiming Temple is located in the northeastern part of Nanjing City. It was built first in the Southern Tang Dynasty and then in the Song Dynasty. The existing Temple was built in the Ming Dynasty. With Xuanwu Lake at the back, Jiming Temple faces the Purple Mountain to the east. Inside the temple are Guanyin Building, Huomeng Building, Jingyang Building, Rouge Well, etc. Legend has it that when the emperor of the Southern Tang Dynasty and his concubine hid themselves in the well in order to escape the enemy pursuit, the stains of rouge were left on the well: hence the name of Rouge Well. Behind the temple there remains a section of palace wall called Taicheng.