A national cross-sectional study has found that medical students do not reflect the diverse communities they will serve, with under-representation of Māori and Pacific students and those from low socioeconomic and rural backgrounds. A total of 2858 students enrolled to study medicine at the Universities of Auckland or Otago during 2016-2020 were included in the study. More women than men were enrolled in medicine (59.1% vs 40.9%), and almost all (96.5%) were in the 18-29 years age range. Rate ratios for enrolment of Māori and Pacific students were 0.92 (95% confidence interval [CI] 0.84-1.0) and 0.85 (95% CI 0.73-0.98), respectively. Enrolment rates had a nearly log-linear negative relationship with increasing socioeconomic deprivation for all ethnic groups, irrespective of rural or urban origin. The rate ratio for enrolment of students from rural areas was 0.53 (95% CI 0.46-0.61) compared with those from urban areas. The study authors suggested several policy changes to address these issues.