Many assume Mayberry was loosely based on Andy Griffith's hometown of Mount Airy, North Carolina, but actually, Griffith has indicated that nearby Pilot Mountain, also in Surry County, North Carolina, inspired him in creating the town. Pilot Mountain likely was the inspiration for the fictional town of "Mount Pilot", a nearby larger town in relation to Mayberry, often referred to and occasionally visited by the characters in "The Andy Griffith Show". The county seat of Surry County is in Dobson; thus, this is the location of the nearest courthouse to Mount Airy. One episode has a fictional nearby location - "Pierce County". Another episode has Barney Fife referring to Sheriff Taylor and himself as "the law west of Mount Pilot".