Phra Buddha Yodfa Chulaloke founded the Chakri dynasty and established Bangkok as the capital of Thailand in 1782.