Sandwich is a town on Cape Cod in Massachusetts and is its oldest town. The population was 20,259 at the 2020 census. Sandwich is one of the first towns greeting visitors to Cape Cod, and one of the last they see when leaving. While the rest of the world may know Sandwich for its distinctive glassware production in the 1800s, the city's most enduring legacy is as the oldest town on Cape Cod.