Sang til Sandefjord was written to the town of Sandefjord by Thorleif Jacobsen in the 1930s. The original music was composed by Baard Heradstveit. However, his melody was considered to be very difficult to sing. In order to revitalize the song, Rolf Hansen Stub composed an alternative melody in the early 1980s, which is the one in use today. The melody has been played daily from the carillon of Sandefjord Kirke.