After Yang Jian ascending the throne, the founder of the Sui dynasty, Emperor Wen immediately abolished the policy of destroying Buddha statues during the Northern Zhou. Emperor Wendi ordered to build temples and renovate Buddha statues and sutras. After completing studies under Dazu Huike, Sengcan, the third Patriarch, settled at the temple in 590, where he taught Chan Buddhism for years.
In 745, in the reign of Emperor Xuanzong of Tang, the local official Li Chang built a stupa for preserving the śarīras of Sengcan. In 758, Emperor Suzong renamed it "Sanzu Shangu Ganyuan Chan Temple". In 772, Emperor Daizong honored the stupa "Jueji Stupa". Since Emperor Wuzong believed in Taoism, he ordered to demolish Buddhist temples, confiscate temple lands and force monks to return to secular life. The massive movement was known as the "Great Anti-Buddhist Persecution" or "Huichang Suppression of Buddhism" in Chinese. Sanzu Temple was badly damaged in this massive movement. In 847, in the ruling of Emperor Xuanzong, the temple was restored and refurbished.
Song dynasty
In 1028, in the 6th year of Emperor Renzong of Song, the empress dowager gave a tooth relic to the temple and donated property to establish the Zishou Pagoda.
In 1425, during the reign of the Hongxi Emperor of the Ming dynasty, abbot Puju renovated and redecorated the temple. During the reign of the Chenghua Emperor, local official Pan Jian appropriated a large sum of money for constructing the temple. In 1635 in the late Ming dynasty, the temple was gradually fell into ruin during the war between Zhang Xianzhong, the leader of roving bandits, and the army of the Ming imperial court.
During the Kangxi and Qianlong periods of the Qing dynasty, abbots Poyin and Zhihai raised funds to restore the temple. In 1860, the temple was devastated by war between the Taiping Rebellion and the Qing army.
The Mahavira Hall was built by abbot Yuehai in 1944. In the center of the hall enshrines the statue of Sakyamuni with Ānanda and Kāśyapa Buddha on the left and right. At the back of the hall are placed the statues of Guanyin, Sudhana, and Longnü.
Thousand Buddha Hall
The Thousand Buddha Hall enshrining a wood carving statue of Vairocana. In the four interior walls one thousand miniature Buddha statues are inlaid in the alcoves.
Hall of Guru
The Hall of Guru houses statues of Bodhidharma, Dazu Huike, Sengcan, with a bronze statue of Baozhi at the back.
Jueji Stupa
The Jueji Stupa, more commonly known as "Sanzu Stupa", was originally constructed in 745 in the Tang dynasty. It was completely destroyed by the Red Guards in the ten-year Cultural Revolution.