Thamshavn came into being in 1867 when the local farmer Wilhelm Thams established a sawmill on the area that was named after him. He and his son Christian Thams bought the Løkken Mine at Løkken Verk in 1904 and decided to build a railway from the mine to Thamshavn where they could ship out the pyrites to continental Europe. At the same time the steam shipD/S Orkla started operating between Thamshavn and Trondheim.