Lennon began writing the song in 1968, when, as "Child of Nature", it was among the many songs demoed by the Beatles before they recorded their self-titled double album (also known as the "White Album"). The lyrics were originally inspired by a lecture given by Maharishi Mahesh Yogi in early 1968, when the Beatles attended his spiritual retreat in Rishikesh, India. In January 1969, The Beatles (primarily John) jammed the song during their Get Back / Let It Be recording sessions, where it was referred to as "On the Road to Marrakesh".
