The band, which had been playing in London's club and university circuits for almost two years, had the opportunity to test the new facilities at De Lane Lea Studios. From that experience, a five-song demo emerged, including Keep Yourself Alive and Liar. Despite the demo's quality, the initial record deal offer was low, leading the band to decline it. Later, Barry and Norman Sheffield, who were setting up Trident Studios, allowed them to record there, albeit mainly during the studio's off-peak hours. It was in this context that Freddie Mercury, while waiting, recorded vocals for a version of I Can Hear Music and Goin' Back, with the help of Brian May and Roger Taylor, released under the alias Larry Lurex.
The recording process, which spanned from April to July 1972, involved working on unconventional schedules, forcing the band to concentrate on completing one song at a time. There were challenges, especially with re-recording tracks from the original demo. Keep Yourself Alive was one of the first to be re-recorded, and the band was not satisfied with the initial results. After several failed mixing attempts, engineer Mike Stone stepped in, achieving a version that was approved. Stone would continue to work with them on their next five albums. It is interesting to note that the original album cover included the note "No synthesizers," to clarify that sound effects were achieved with multi-tracking techniques and guitar and vocal processing, not electronic instruments. Bassist John Deacon was originally credited as "Deacon John," a decision made to make him sound more intriguing.