The poem the lyrics were based on was written by Lenny Lipton, while a 19-year-old, studying physics at Cornell University. He went on to develop 3-D cinema systems.

It was worked into a song with additional word by Peter Yarrow, of Peter Paul and Mary. It was controversial as some people saw it as having a deeper meaning relating to drug use.