The Swedes named it after King Gustav III and, in 1785, declared it the free port that it remains today.
The Swedes named it after Gustav IV in 1940.
mnli hypothesis: The Swedes named it after Gustav IV in 1940. premise: The Swedes named it after King Gustav III and, in 1785, declared it the free port that it remains today.