BackgroundThe Universal Infant Free School Meal (UIFSM) policy was introduced in 2014/15 in England and Scotland for schoolchildren aged 4–7 years, leading to an increase in school meal uptake. UK school meals are known to be healthier and less industrially processed than food brought from home (packed lunches). However, the impact of the UIFSM policy on the quantity of ultra-processed food (UPF) consumed at school during lunchtime is unknown. This study aimed to evaluate the impact of the UIFSM policy on lunchtime intakes of UPF in English and Scottish schoolchildren.MethodsData from the UK National Diet and Nutrition Survey (2008–2019) were used to conduct a difference-in-difference (DID) natural experiment. Outcomes included school meal uptake and the average intake of UPF (% of total lunch in grams (%g) and % total lunch in Kcal (%Kcal)) during school lunchtime. The change in the outcomes before and after the introduction of UIFSM (September 2014 in England, January 2015 in Scotland) in the intervention group (4–7 years, n = 835) was compared to the change in an unexposed control group (8–11 years, n = 783), using linear regression. Inverse probability weights were used to balance characteristics between intervention and control groups.ResultsBefore UIFSM, school meal uptake and consumption of UPFs were similar in the intervention and control groups. The DID model showed that after UIFSM, school meal uptake rose by 25%-points (pp) (95% CI 14.2, 35.9) and consumption of UPFs (%g) decreased by 6.8pp (95% CI -12.5,-1.0). Analyses indicated this was driven by increases in minimally processed dairy and eggs, and starchy foods, and decreases in ultra-processed salty snacks, bread and drinks. The differences were larger in the lowest-income children (-19.3 UPF(%g); 95% CI -30.4,-8.2) compared to middle- and high-income children. Analyses using UPF %Kcal had similar conclusions.ConclusionsThis study builds on previous evidence suggesting that UIFSM had a positive impact on dietary patterns, showing that it reduced consumption of UPFs at school lunchtime, with the greatest impact for children from the lowest-income households. Universal free school meals could be an important policy for long term equitable improvements in children’s diet.