Sandwich is a town in Barnstable County, Massachusetts, the oldest town on Cape Cod. The town motto is Post tot Naufracia Portus, "after so many shipwrecks, a haven". The population was 20,675 at the 2010 census.
Cape Cod was occupied by the Algonquian-speaking Wampanoags who befriended the Pilgrims of Plymouth Colony. Sandwich was settled in 1637 by a group from Saugus, Massachusetts with the permission of the Plymouth Colony. It is named for the seaport of Sandwich, Kent, England. It was incorporated in 1639 and is the oldest town on Cape Cod, together with Yarmouth, Massachusetts. The western portion of the town was separated from the original Town of Sandwich and became the town of Bourne in 1884.
There are many historic homes in Sandwich, including the Benjamin Nye Homestead on Old County Road (formerly known as Old King's Highway) and the Benjamin Holway House built in 1789 at 379 Route 6A. This property hosts one of the original Nye Homestead structures built in 1698, believed to have originally served as either a tavern or a shop. It is now used as a law office.
Sandwich was the site of an early Quaker settlement and today hosts the oldest continuous Quaker Meeting in the US. There were some conflicts with other religious groups, and so some Quakers left the town for further settlements elsewhere, including Dartmouth, Massachusetts.