Puppeteers Sid & Marty Krofft had developed some of the puppets used on The Banana Splits Adventure Hour for Hanna-Barbera, but then, a year later, they struck out on their own, becoming as much a major player on Saturday mornings during the 70's as H-B themselves.
The first part of what I like to refer to as the Krofftverse was H. R. Pufnstuf, a surrealist fantasy that spent a total of three seasons on NBC, the last two entirely in repeats, and then the reruns shifted over to ABC for a 4th and final season in 1972.
The title hero was the mayor of the Living Island, defending his fiefdom, if you will, from the nefarious Witchiepoo (Billie Hayes), who now had more reason to take control. A teenager, Jimmy (Jack Wild, "Oliver!") and a talking flute named Freddy had landed on the island. Witchiepoo coveted the flute, but, as most often happens, was foiled either by Pufnstuf or the bumbling of her own aides.
Not only did actor Len Weinrib voice Pufnstuf, he was also one of the show's writers, and would serve in a similar capacity a year later, working on Dr. Doolittle for DePatie-Freleng, also for NBC. Weinrib had also been an independent filmmaker during the 60's before turning full time to children's television.
Here's "The Golden Key":
There was also a feature film, "Pufnstuf", with the regular cast, but that hasn't seen the light of day in years. Pufnstuf & Witchiepoo would return a few years later on the short-lived Krofft Superstar Hour, and that would mark the end of the line for both. We have to assume Jimmy & Freddy made it home by then.
If you can get past all the insinuations regarding drug use that have cropped up in various media outlets in the years after the series ended production, you'd see that this was all just absurdist fantasy, with a few musical numbers thrown in to take advantage of Wild's talents as a singer.
Series producer Si Rose came over from Universal, which, oh by the way, distributed the "Pufnstuf" movie, even though the series itself was shot at Paramount. Go figure.