In 405 in the Eastern Jin dynasty, the stupa was relocated to the present site. The Emperor An of Jin issued the decree building a pavilion to protect the stupa.
Southern dynasty
In 425, in the 2nd year of Yuanjia period in the Liu Song dynasty, Emperor Wendi ordered abbot Daoyou to enlarge the temple. The construction took 10 years, and lasted from 425 to 435. In 522, in the 3rd year of Putong period in the Liang dynasty, Emperor Wudi inscribed and honored the name "Temple of King Ashoka". In 540, Emperor Wudi donated 500 gold taels to establish a five story pagoda, a bronze statue of Buddha and an iron tripod. The Temple of King Ashoka rose to fame under the support of the central government.
In 713, in the 2nd year of Xiantian period in the Tang dynasty, monk Liaoyuan elected the Western Pagoda Temple. In 744, after the third time failed in travel east to Japan, master Jianzhen settled at the Temple of King Ashoka, where he taught Risshū buddhism and attracted large numbers of practitioners. Since Emperor Wuzong believed in Taoism, he ordered to demolish Buddhist temples, confiscate temple lands and force monks to return to secular life. The stupa was confiscated. Nine years later, in the reign of Emperor Xuanzong, the stupa was sent back to the Temple of King Ashoka. Over 8,000 monks attended the consecration ceremony.
The Temple of King Ashoka was restored and redecorated in 937, in the 6th year of Kaibao period in the Northern Song dynasty. In 1008, in the ruling of Emperor Zhenzong, the emperor renamed it "Shanguangli Chan Temple of King Ashoka" In 1068, under the rule of Emperor Shenzong, Huailian was proposed as the fifth abbot of the temple. Under the leadership of Huailian, the temple was growing of a resurgence of spiritual and religious inquiry. During the Jianyan period of the Southern Song dynasty, the stupa was transferred to the imperial palace for worship, Emperor Gaozong bestowed a plaque on the temple with the Chinese characters "". In 1156, master Zonggao was appointed the new abbot of the temple. The temple had reached unprecedented heyday at that time with more than 6,000 monks lived in the temple. In 1174, Emperor Xiaozong inscribed a plaque with the words "" to the temple and bestowed the abbot Congkuo upon the title of "Miaozhi Chan Master". During the Jiading period, alongside Jingshan Temple, Lingyin Temple, Jingci Temple and Tiantong Temple, the Temple of King Ashoka was hailed as one of the Five Mountains. After the fall of the Southern dynasty, the temple went to ruin during the Mongolian invasion of the 13th century.
During the reign of Emperor Shizu of the Yuan dynasty, Wanji and Rugong successively served as abbot of the Temple of King Ashoka. In 1342, in the Zhizheng era, abbot Wuguang refurbished and renovated the Guru Hall, Dharma Hall and other halls and rooms. He used the government rewards to established the Cheng'en Pavilion.
In 1382, in the 15th year of Hongwu period in the Ming dynasty, Hongwu Emperor renamed the temple "Chan Temple of King Ashoka". During the Wanli era, a bronze stupa was erected by Empress Dowager Xiaoding. Abbot Chuanping founded the Shanmen, Meditation Hall, corridors and monk's rooms. At that time, the temple had over 100 halls and rooms.
A catastrophic fire consumed the temple in 1662, the year of Kangxi Emperor of the Qing dynasty ascended the throne. The Temple of King Ashoka was reconstructed by monk Fazhong in 1680. During the reign of Qianlong Emperor, the emperor gave many treasures to the temple, including purple cassock, Heart Sutra and Nīlakaṇṭha Dhāraṇī. In the Guangxu era, Putong Pagoda Hall, Yangxin Hall, Yunshui Hall, Lingju Hall, Four Heavenly Kings Hall and abbot's room were gradually built. And the Mahavira Hall was renovated and redecorated in 1911, in the year of the downfall of the Qing dynasty.
Abbot Zongliang supervised the reconstruction of Great Compassion Hall and Meditation Hall between 1912 and 1916. The Four Heavenly Kings Hall reduced to ashes by a devastating fire in 1930. After two years it was rebuilt by abbot Yuanlong.
In 1966, Mao Zedong launched the ten-year Cultural Revolution, the government forced monks to return to secular life, the temple was used as factory and barracks. After the 3rd Plenary Session of the 11th Central Committee of the Chinese Communist Party, according to the national policy of free religious belief, regular sutras lectures, meditation and other features of temple life were resumed. The Temple of King Ashoka was inscribed as a provincial cultural preservation unit by the Zhejiang Provincial Government in April 1981. The Temple of King Ashoka has been designated as a National Key Buddhist Temple in Han Chinese Area by the State Council of China in 1983. The administrative power was transferred to monks in September 1988, and the government has allocated CN¥ 0.6 million for the reconstruction project. Construction of the Eastern Pagoda, designed by abbot Tongyi, commenced in 1992 and was completed in 1995. In May 2006, it was listed among the sixth group of "Major National Historical and Cultural Sites in Zhejiang" by the State Council of China.
Architecture
The Temple of King Ashoka occupies a building area of and the total area including temple lands, forests and mountains is over. Along the central axis are the Shanmen, Free Life Pond, Four Heavenly Kings Hall, Mahavira Hall, Hall of Sarira, Dharma Hall and Buddhist Texts Library. There are over 625 halls and rooms on both sides, including Guru Hall, Cheng'en Hall, Bell tower, Drum tower, Abbot Hall, Monastic Dining Hall, Monastic Reception Hall and Meditation Hall.
The Mahavira Hall is seven rooms wide and high. The hall enshrining the statues of Sakyamuni, Amitabha and Bhaisajyaguru. The two disciples' statues are placed in front of the statue of Sakyamuni, the older is called Kassapa Buddha and the middle-aged is called Ananda. In the center of the eaves of the hall is a plaque, on which there are the words "". Another plaque with "" written by Qianlong Emperor is hung in the interior side of the hall. At the back of the hall enshrines the statue of Guanyin with Shancai standing on the left and Longnü on the right. And the statues of Eighteen Arhats stand on both sides of the hall.
Buddhist Texts Library
The two storey Buddhist Texts Library is five rooms wide and high. Two sets of Chinese Buddhist canon which were printed in the Yongzheng and Qianlong periods of the Qing dynasty are preserved in the hall.