Pembroke is a South Shore suburb of the Boston metropolitan area and is located about halfway between Boston and Cape Cod. Incorporated in 1712, it is named for the town of Pembroke, Wales. Prior to World War II, the town was an agricultural and industrial community. In the early 20th century, the popularity of the cranberry lead to the construction of numerous bogs; some of which are still in operation today. In recent years, Pembroke has become an affluent community and is home to over 20,000 residents. New home developments are geared towards upmarket buyers.