The first records referring to Kungsbacka as a town date from the 15th century, when it was part of Denmark.By the time it was recognised as part of Sweden (1658), the river running through the town, on which some transportation of goods took place, was almost completely overgrown and despite pleas to restore its function, this did not occur.[citation needed] A devastating fire in 1846 destroyed the town centre, sparing only a little red wooden cabin which still stands today.In late 2006 and early 2014 other fires affected the town centre, and construction work is ongoing to restore the loss of wooden buildings.The town began to grow as a part of Metropolitan Gothenburg.