The location for most major cities around the world is where there was a transition point between modes of transport. Sea <-> river, river <-> road, then later adding canals and rail into the mix. Where such transit points exist you are going to develop infrastructure for storing and re-packaging goods from one mode of transportation to another, which will lead to trade of the goods at these locations, which leads to more goods coming in to be traded, and round and round it goes.