"The Fool on the Hill" is a song by The Beatles. It was written and sung by Paul McCartney (credited to Lennon/McCartney) and recorded in 1967.
McCartney said of the song:
“'Fool on the Hill' was mine and I think I was writing about someone like Maharishi. His detractors called him a fool. Because of his giggle he wasn't taken too seriously … I was sitting at the piano at my father's house in Liverpool hitting a D 6th chord, and I made up 'Fool on the Hill.'”
Alistair Taylor, in the book Yesterday, reports a mysterious incident involving a man who inexplicably appeared near him and McCartney during a walk on Primrose Hill and then disappeared again, soon after McCartney and Taylor had conversed about the existence of God; this allegedly prompted the writing of the song.
McCartney played the song for John Lennon during a writing session for "With a Little Help from My Friends," and Lennon told him to write it down. McCartney didn't; he was sure he wouldn't forget it. In his 1980 interview with Playboy, Lennon said, "Now that's Paul. Another good lyric. Shows he's capable of writing complete songs."