In 1716, the ship Restoration arrived in Massachusetts from London, with several Jewish merchants aboard, thus creating the core of a Jewish community in New England. A century earlier, the Puritans of Massachusetts Bay were determined to exclude alien elements from their community, and they hanged four Quakers to prove it. New Amsterdam governor Peter Stuyvesant cleansed his colony of Lutherans and Quakers, and tried to do the same to Jews. Such episodes were largely confined, however, to the 17th century, and by the time of the Revolutionary War, many Jews had settled in Massachusetts. It would not be until 1840, however, that the first synagogue was established in Boston.