Saint-Barthélemy was occupied by the French in 1648. It was sold to Sweden in 1784 but was returned to France in 1877 after a plebiscite. The capital and only town is Gustavia (named for Sweden's King Gustav III), which stands on a well-sheltered harbour.