The 2018 (WCRF)/American Institute for Cancer Research (AICR) Cancer Prevention Recommendations are evidence-based lifestyle recommendations which aim to reduce the risk of cancer worldwide. Sociodemographic factors modulate lifestyle behaviours, and both cancer incidence and survival are socio-economically patterned. We investigated adherence to these recommendations and examined patterns of adherence across sociodemographic subgroups in the UK Biobank cohort. We included 158 415 UK Biobank participants (mean age 56years, 53% female). Total adherence scores were derived from dietary, physical activity and anthropometric data using the 2018 WCRF/AICR standardized scoring system. One-Way analysis of variance (ANOVA) was used to test for differences in total scores and in values for individual score components according to sociodemographic factors and Pearson's Χ2 test to investigate associations between sociodemographic factors according to tertiles of adherence score. Mean total adherence score was 3.85 points (SD 1.05, range 0-7 points). Higher total scores were observed in females, and older (>57years), Chinese or South Asian, and more educated participants. We found significant variations in adherence to individual recommendations by sociodemographic factors including education, Townsend deprivation index and ethnicity. Identifying and understanding lifestyle and dietary patterns according to sociodemographic factors could help to guide public health strategies for the prevention of cancers and other non-communicable diseases.