Yonghegong Lamsery ( Harmony and Peace Palace Lamasery ), Beijing, a renowned lama temple of the Yellow Hat Sect of Lamaism, is the largest Tibetan Buddhist temple in Beijing. It was originally built in 1694 as the residence of Qing Dynasty Prince Yong before he ascended the throne as Emperor Yongzheng.
After Yongzheng's death in 1735, his coffin was placed in the temple. Emperor Qianlong, his successor, then upgraded Yonghegong temple to an imperial palace and replaced its turquoise tiles with yellow tiles (yellow was the imperial color in the Qing Dynasty).
In 1744, it was converted into a lamasery and became a residence for large numbers of monks from Mongolia and Tibet.