Abstract Background Evidence suggests that insulin therapy of patients with type 2 diabetes mellitus (T2DM) is frequently discontinued. However, the reasons for discontinuing insulin and factors associated with insulin discontinuation in this patient population are not well understood. Methods We conducted a retrospective cohort study of adults with T2DM prescribed insulin between 2010 and 2017 at Partners HealthCare. Reasons for discontinuing insulin and factors associated with insulin discontinuation were studied using electronic medical records (EMR) data. Natural language processing (NLP) was applied to identify reasons from unstructured clinical notes. Factors associated with insulin discontinuation were extracted from structured EMR data and evaluated using multivariable logistic regression. Results Among 7009 study patients, 2957 (42.2%) discontinued insulin within 12 months after study entry. Most patients who discontinued insulin (2121 / 71.7%) had reasons for discontinuation documented. The most common reasons were improving blood glucose control (33.2%), achieved weight loss (18.5%) and initiation of non-insulin diabetes medications (16.7%). In multivariable analysis adjusted for demographics and comorbidities, patients were more likely to discontinue either basal or bolus insulin if they were on a basal-bolus regimen (OR 1.6, 95% CI 1.3 to 1.8; p