The province was created during the Ayutthaya period, with its administrative centre at Prapadaeng. It was the sea port of Siam, and was secured with forts, town moats, and town walls. King Rama II started the building of the new centre at Samut Prakan in 1819, after his predecessor King Taksin had abandoned the town fortifications. Altogether six forts were built on both sides of the Chao Phraya River, and on an island in the river the pagoda, Phra Samut Chedi, was erected. These were involved in the Paknam incident of 13 July 1893, which ended the Franco-Siamese War with a French naval blockade of Bangkok. Of the original six forts only two still exist today, Phi Sua Samut and Phra Chulachomklao. Samut Prakan is at the mouth of the Chao Phraya River on the Gulf of Thailand. Thus the province is also sometimes called Pak Nam (ปากน้ำ), the Thai word for the mouth of a river.