"You Never Give Me Your Money" is a song by the English rock band the Beatles. It was written by Paul McCartney (and credited to Lennon–McCartney) and documented the financial and personal difficulties facing the band. The song is the first part of the medley on side two of their 1969 album Abbey Road and was recorded in stages between May and August that year. The song was the first one to be recorded for the medley, which was conceived by McCartney and producer George Martin as a finale for the Beatles' career. The backing track was recorded at Olympic Sound Studios in Barnes, London, but the remainder of overdubs occurred at EMI Studios. Musically, the song is made up of a suite of various segments, ranging from a piano ballad at the beginning through to guitar arpeggios at the end. Background The song was written by McCartney when he was staying with his wife Linda in New York in March 1969 shortly after their wedding. This was a break following the Get Back/Let It Be sessions. John Lennon and McCartney were at risk of losing overall control of Northern Songs, the company that published their songs, after ATV Music bought a majority share. McCartney had been largely responsible for the group's direction and projects since the death of manager Brian Epstein in 1967, but he began to realise that the group dynamic of the Beatles was unraveling. He was particularly unhappy at the others, who wanted manager Allen Klein to help resolve financial matters. McCartney later said that the song was written with Klein in mind, saying "it's basically a song about no faith in the person". He added that the line "One sweet dream, pack up the bags, get in the limousine" was based on his trips in the country with Linda to get away from the tense atmosphere with the Beatles, though author Walter Everett thought the line was also a nostalgic look at the Beatles' touring years, which had ended in 1966. Realising that Abbey Road could be the group's last album, McCartney and Martin decided to combine various portions of tracks into a medley, which would act as a climactic finale of the group's career. McCartney later said that the idea of a song suite was inspired by Keith West's "Excerpt from A Teenage Opera". Some musical segments of "You Never Give Me Your Money"