 Andy Griffith (I) (qv) said that when they were trying to come up  with an idea for a spinoff for Gomer, they wanted the toughest  location or situation they could put him in; so they came up with  the Marines. The idea was to pit Gomers gentle character against  the tough setting and it worked.