AIMS: This study assesses the attributable impact of adherence to oral glucose medications as a risk factor for poor glycemic control in population subgroups of a large general population, using an objective medication adherence measure. METHODS: Using electronic health records data, adherence to diabetes medications over a two-year period was calculated by prescription-based Medication Possession Ratios for adults with diabetes diagnosed before January 1, 2010. Glycemic control was determined by the HbA1c test closest to the last drug prescription during 2010-2012. Poor control was defined as HbA1c>75 mmol/mol (9.0%). Medication adherence was categorized as "good" (>80%), "moderate" (50-80%), or "poor" (