Karlskoga is a locality and the seat of Karlskoga Municipality in Orebro County, Sweden with 27,084 inhabitants in 2010.
It is located at the northern shore of lake Mockeln , and the small settlement was initially called Mockelns bodar. The name Karlskoga is derived from Charles (Karl) IX, with skog meaning woods.
The parish of Karlskoga was established in 1586 and a wooden church was soon built. In the 17th century fourteen small iron works and eight waterdriven hammers for bar iron were established. Most of these were still operating in the 1860s, but the dominating iron works was the one in nearby Bofors. In 1871, Bofors produced 6,124 metric tons of iron, more than any other plant in Sweden. In 1882, Karlskoga parish (socken) had 11,184 inhabitants.
The town of Karlskoga has evolved around Bofors, which in late 19th century transformed from iron works to a manufacturer of cannon and in the 20th century a more diversified defense industry. The most famous owner of Bofors was Alfred Nobel who owned the company from 1894 until his death in December 1896. He had the key role in reshaping the iron manufacturer to a modern cannon manufacturer and chemical industry. During the summers of 1894–1896 he also lived in the manor house Bjorkborn . Even though he died in his villa in Sanremo, Italy and had a home in Paris, France it was decided that his residence was at Bjorkborn in Karlskoga. Because of that it was here his famous testament that was written in Paris 1895 was legally registered, which eventually made it possible to establish the Nobel Prize.
In 1940 the town of Karlskoga and the surrounding area (the same territory as todays Karlskoga Municipality) got the formal title of a city (stad). Since 1971 this term has no legal meaning and only the built-up area is considered a de facto city.