Barnstable (/ˈbɑːrnstəbəl/ BARN-stə-bəl) is a city, sometimes called the Town of Barnstable, in the U.S. state of Massachusetts and the county seat of Barnstable County. Barnstable is the largest community on Cape Cod. At the 2010 census it had a population of 45,193.
The town contains several villages (one of which is also named Barnstable). Its largest village, Hyannis.