France claimed the island in 1648. The spot where Gustavia now sits was called Le Carénage, meaning the careening place, because ships with damaged hulls sheltered there. The harbour is the whole point of the town: the island itself is dry, steep and rocky.
Because sugar would never pay here, no European power fought hard for the island during the 1700s. The harbour was another matter.
Sweden took the island in 1784, in exchange for trade rights in Gothenburg, and set up the Swedish West India Company. The town was renamed after King Gustav III. The archives show the name Gustavia appearing between late December 1786 and early February 1787.
Under Swedish rule the town was a free port. A sea captain who had taken a prize or raided a settlement could sell the loot here and restock his ship. Warehouses overflowed and ships from many nations crowded the harbour.
The island did well during the Napoleonic Wars, but its assets were low afterwards. Sweden sold it back to France in 1878. Only about 4 percent of the population had Swedish origins, yet the town still reflects the Swedish period, from its name to the Royal Swedish Consulate.
The harbour's old role as a supply stop has become a tourist trade. As visitor numbers grew, the town reshaped itself around them, with restaurants, boutiques and gift shops on its busy streets.