How did Italian city-states like Venice and Florence become major banking and trade centers?

How did Italian city-states like Venice and Florence become major banking and trade centers?

Large families of powerful bankers established trade agreements with nearby cities. <-- alot of people say this

Their location made them a natural route for travel between Europe, Africa, and Asia. <— some people say this