Bangkok and Thonburi, an area on the west bank of the Chao Phraya, were just small villages. At that time they served as ports for ships sailing up the river to Ayuthaya, the former capital of what was then called Siam. As ships got larger and the river got shallower, the villages grew in importance.