Background: The relationship between multimorbidity and the frailty syndrome remains poorly characterized. We aimed to investigate the longitudinal association of multimorbidity with the frailty syndrome assessed using both the Rockwood frailty index (FI) and the Fried frailty phenotype among middle-aged and older adults in the United Kingdom.Methods: This prospective cohort study used data from the UK Biobank. At baseline, multimorbidity was defined as ≥2 long-term conditions (LTCs) and was evaluated based on the LTCs counts and clusters. At both baseline and follow-ups, we used five criteria (weight loss, exhaustion, slow walking speed, low hand-grip strength, and low physical activity) to define the Fried frailty phenotype (meeting three or more of the five indicators). The Rockwood FI was calculated using 49 variables representing a variety of physiological and mental health domains, symptoms, disabilities, and diagnosed diseases, and the Rockwood FI-defined frailty was referred to as FI ≥0·25. Data were analyzed using Cox proportional hazards models.Findings: Among the 29 595 baseline frailty-free participants defined using the Rockwood FI methods, 1505 (5·1%) developed incident frailty over a median follow-up of 9·40 years. Among the 67 213 baseline frailty-free participants defined using the Fried frailty phenotype, 1467 (2·2%) developed incident Fried frailty phenotype over a median follow-up of 9·62 years. Multimorbidity at baseline was significantly associated with elevated risks of the frailty syndrome (the Rockwood FI: hazard ratio [HR] = 3·51, 95% confidence interval [CI] = 3·04-4·04, p<0·001; the Fried frailty phenotype: HR = 2·19, 95% CI = 1·95-2·46, p<0·001). The risk of developing the frailty syndrome increased linearly with a greater number of LTCs. The multimorbidity clusters that were significantly associated with the Rockwood FI-defined frailty included cardiometabolic (HR = 1·88, 95% CI = 1·66-2·14), respiratory-immune (1·66, 1·49-1·85), cancer-endocrine (1·44, 1·26-1·64), and mixed (2·15, 1·94-2·40) clusters; for the Fried frailty phenotype, cardiometabolic (1·64, 1·45-1·85), neurological (1·47, 1·06-2·05), inflammatory bowel disease (2·84, 1·91-4·22), and mixed (1·98, 1·77-2·22) clusters.Interpretation: Multimorbidity is strongly associated with an increased risk of the frailty syndrome in middle-aged and older adults, with the association being specific for certain disease clusters. Managing multimorbidity from midlife onward may be crucial to delaying the frailty syndrome.