In the reign of King Taksin, Chao Phya Chakri defeated Vientiane and moved the Emerald Buddha from Vientiane to Thonburi where it was installed in a shrine close to Wat Arun. When Chao Phra Chakri took over the throne and founded the Chakri Dynasty of the Rattanakosin Kingdom, he shifted his capital across the river to its present location in Bangkok. The Emerald Buddha was also moved across the river with pomp and pageantry and installed in the temple of Wat Phra Keaw.