However, despite its on-screen portrayal as a small town in North Carolina, the show was not shot on location in Mayberry. Instead, the production cleverly recreated the familiar settings of Mayberry, including the courthouse, barbershop, and Andy Taylor's home, using various studio lots and sets.