BackgroundObesity is a multifactorial disease, which is strongly associated to other metabolic disorders. Bariatric surgery is the most effective treatment of morbid obesity. The role of beta cell function in weight loss after bariatric surgery is uncertain.AimTo evaluate the association between beta cell function and percentage of total body weight loss (TBWL%) 1, 2, 3, and 4 years after bariatric surgery in patients with morbid obesity.MethodsRetrospective longitudinal study in patients with morbid obesity followed in our center between January 2010 and July 2018. Patients were excluded if they had diabetes at baseline or missing data on the needed parameters. We evaluated baseline Homeostatic Model Assessment of IR, Homeostatic Model Assessment of β-cell function (HOMA-beta), Quantitative Insulin Sensitivity Check Index, and Matsuda and DeFronzo index, and TBWL% at years 1 to 4. Linear regression models were used to evaluate the association of indexes of insulin resistance with TBWL% (unadjusted and adjusted for age, sex, BMI, and type of surgery).ResultsThere were 1,561 patients included in this analysis. HOMA-beta was negatively associated with TBWL% at second, third, and fourth years post-surgery (β = −1.04 [−1.82 to −0.26], p<0.01; β = −1.16 [−2.13 to −0.19], p=0.02; β = −1.29 [−2.64 to 0.06], p=0.061, respectively). This was not observed in the first year post-surgery nor for the other indexes. Glycemia at baseline was positively associated to EWL% at second and third years post-surgery.Conclusionβ-cell function at baseline seems to be associated to long-term weight loss, explicitly after the first year post bariatric surgery. This might be a helpful predictor of weight loss in clinical practice.