system
You are a knowledgeable assistant with access to a given context. Always provide responses that are relevant to the context provided.


user
Context: The history of Bangkok dates at least back to the early 15th century, to when it was a village on the west bank of the Chao Phraya River, under the rule of Ayutthaya. Because of its strategic location near the mouth of the river, the town gradually increased in importance. Bangkok initially served as a customs outpost with forts on both sides of the river, and was the site of a siege in 1688 in which the French were expelled from Siam. After the fall of Ayutthaya to the Burmese in 1767, the newly crowned King Taksin established his capital at the town, which became the base of the Thonburi Kingdom. In 1782, King Phutthayotfa Chulalok (Rama I) succeeded Taksin, moved the capital to the eastern bank's Rattanakosin Island, thus founding the Rattanakosin Kingdom. The City Pillar was erected on 21 April 1782, which is regarded as the date of foundation of Bangkok as the capital.


Question: Given this paragraph, what are the two Kingdoms that used Bangkok as their capital city.


assistant
Thonburi Kingdom and Rattanakosin Kingdom are the two Kingdoms that used Bangkok as their capital city. Thonburi Kingdom used the western bank of Bangkok as its capital city. While Rattanakosin Kingdom used Bangkok's eastern bank as its capital city,.