During the 18th century, molasses was imported to Boston from the Caribbean in order to make rum. Because molasses is the ingredient that makes this recipe unique and that ingredient was associated with Boston at the time, they became known as Boston baked beans.