With a history of more than 1,200 years, Yuantong Temple is one of the oldest and grandest Buddhist temples in Kunming . A king of Nanzhao Kingdom (641-902) built the temple during the late eighth century as a continuation of Butuoluo Temple.