In 1779, the Siamese General Chao Phraya Chakri put down an insurrection, captured Vientiane and took the Emerald Buddha to Siam. It was installed in a shrine close to Wat Arun in Thonburi, the new capital of Siam. Chao Phra Chakri then seized the throne for himself and founded the Chakri Dynasty of the Rattanakosin Kingdom, where he would later be titled King Rama I. He shifted his capital across Chao Phraya river to its present location in Bangkok, and constructed the new Grand Palace including Wat Phra Kaew within its compound. Wat Phra Kaew was consecrated in 1784, and the Emerald Buddha was moved with great pomp to its current home in the "ubosot" of the Wat Phra Kaew temple complex on 22 March 1784.