The song, based on a much older version called "The Ship That Never Returned" (or its railroad successor, "Wreck of the Old 97"), was composed in 1949 as part of the election campaign of Walter A. O'Brien, a Progressive Party candidate for Boston mayor.