The city is located at the junction of the Chao Phraya, Lopburi and Pa Sak rivers, and on the main north-south railway linking Chiang Mai to Bangkok. The old city is on an island formed by a bend of the Chao Phraya on the west and south sides, the Pa Sak on the east side and the Klong Muang canal on the northern side.