The working title was "Here Comes the Sun King", but was shortened to "Sun King" to avoid confusion with the song "Here Comes the Sun". The song is in three-part harmony, sung by Lennon, Paul McCartney, and Harrison. At the end of the song, the music stops abruptly and a Ringo Starr drum fill leads into the next track, "Mean Mr. Mustard".