Barnstable was incorporated in 1639 and is located in southeastern Massachusetts on Cape Cod. It is bordered by Cape Cod Bay on the north, Nantucket Sound on the south, Sandwich and Mashpee on the west, and Yarmouth on the east. It's total area is 76.26 square miles, with 60.05 square miles of land area.