Up until the mid-nineteenth century, water formed the primary mode of transport in the lower Chao Phraya plains, and most people lived along the banks of rivers and canals. Settlements had formed along the Chao Phraya River since the Ayutthaya Kingdom (14th century – 1767), and some Buddhist temples in and around Bang Rak date to the period. Bangkok became the capital city with the foundation of the Thonburi Kingdom in 1767, and was re-established as the Rattanakosin Kingdom in 1782; riverside areas beyond the fortified city of Rattanakosin Island developed into fringe neighbourhoods settled by various ethnic communities. Downstream of the city and just beyond the Chinatown area, the waterfront stretch that is now Bang Rak Subdistrict was home to Thais, Chinese, Vietnamese, Malays, Lao, Tavoyans, and descendants of Portuguese, among others. A Catholic church (now in the adjacent Talat Noi neighbourhood), dedicated to the Lady of the Rosary, was established by the Portuguese community in 1787. French priests then moved into the area for missionary work, followed by Protestants, mostly from the United States. As international trade increased in the nineteenth century, the neighbourhood developed into one of many port areas along the river.