Karlshamn is a city in Blechingia, and the seat of Karlshamn Municipality in Sweden. It was chartered as a city in 1664 by King Karl X Gustav and in 1666 the name was changed from Bodekull to Karlshamn, literally Karl's Port.