Summary: Background: Rapid urbanisation and associated socioeconomic transformations have modified current lifestyles, shifting dietary preferences towards ready-to-eat, calorie-dense food of poor nutritional quality. The effect of ready-to-eat food environments that sell food for instant consumption on the risk of type 2 diabetes has received scant attention. We therefore aimed to examine the association between exposure to ready-to-eat food environments and type 2 diabetes in a large and diverse population sample. Methods: We conducted a cross-sectional study of adult male and female participants from the baseline phase of the UK Biobank cohort. Participants in this cohort were aged 37–73 years and resided in one of 21 cities in the UK. Ready-to-eat food environments, which we determined from a modelled and linked built environment database, were objectively measured within 1-km catchment areas of the residential streets of participants and were expressed as metrics of density and proximity to the participants' homes. We used logistic regression models to examine the associations between exposure to ready-to-eat food environments and the odds of type 2 diabetes, adjusting for individual covariates such as physical activity. As sensitivity analyses, we investigated the associations between the street distance to the nearest ready-to-eat food outlet and type 2 diabetes. We also tested post hoc for effect modification by sex, income, body-mass index, and location of the UK Biobank collection centre. Findings: Of 502 635 UK Biobank participants enrolled between March 13, 2006, and Oct 1, 2010, the sample analysed included 347 551 (69·1%) participants. The density of ready-to-eat food environments within a 1-km catchment area was associated with higher odds of type 2 diabetes for participants in the groups with highest exposure to restaurants and cafeterias (odss ratio 1·129, 95% CI 1·05–1·21; p=0·0007) and a composite measure of ready-to-eat outlet density (1·112, 1·02–1·21; p=0·0134) compared with those with no exposure. Exposure to hot and cold takeaways was only significantly associated with higher odds of type 2 diabetes at the second highest exposure category that we examined (1·076, 1·01–1·14; p=0·0171), representing a density of 0·75–2·15 units per km2. A protective effect with distance decay was observed: participants in the highest quintile of street distance to nearest ready-to-eat food outlet reported lower odds of type 2 diabetes than those in the lowest quintile (0·842, 0·78–0·91; p