BACKGROUND: The beneficial effect of physical activity (PA) on mental health in adults is well established, but less is known about this relationship in children. We examine associations between objectively measured sedentary time, PA and mental health in 11-year-olds from the UK Millennium Cohort Study (MCS). METHODS: Longitudinal data from MCS sweeps 4 (age 7) and 5 (age 11) were used (n=6153). Accelerometer data were collected at MCS4, and mental health was measured at MCS4 and MCS5 using subscales (peer, emotional, conduct, hyperactivity) of the Strengths and Difficulties Questionnaire (SDQ). Associations between mean daily PA minutes at different intensities (sedentary, light, moderate-to-vigorous) at MCS4 and SDQ outcomes at MCS5 (score range 0-10) were estimated using multiple linear regression models, adjusting for SDQ at MCS4 and individual and family characteristics, and stratified by gender. RESULTS: In fully adjusted models, increased PA at MCS4 was associated with fewer peer problems in boys and girls at MCS5. For each additional 15 min in moderate-to-vigorous physical activity (MVPA), peer problems decreased -0.077 points (95% CI -0.133 to -0.022) in boys. For girls, light PA was associated with decreased peer problems (-0.071 points/30 min, 95% CI -0.130 to -0.013). Greater sedentary time was associated with more peer problems and fewer hyperactivity symptoms in boys and girls. Increased MVPA was associated with more conduct and hyperactivity problems in boys and more hyperactivity in girls. CONCLUSIONS: Increased sedentary time is associated with more peer problems in children, and PA, generally, is beneficial for peer relations in children aged 11