ABSTRACT: Objective: To characterize the trend of opioid use (number of users, dispensations and oral morphine milligram equivalents) in Catalonia (Spain). Design, setting, and participants: This population-based cohort study included all individuals aged 18 years or older, registered in the Information System for Research in Primary Care (SIDIAP), which covers >75% of the population in Catalonia, Spain, from 1 January 2007, to 31 December 2019. Main exposure and outcomes: The exposures were all commercialized opioids and their combinations (ATC-codes): codeine, tramadol, oxycodone, tapentadol, fentanyl, morphine, and other opioids (dihydrocodeine, hydromorphone, dextropropoxyphene, buprenorphine, pethidine, pentazocine). The main outcomes were the annual figures per 1,000 individuals of 1) opioid users, 2) dispensations, and 3) oral morphine milligram equivalents (MME). Results were stratified separately by opioid types, age (5-year age groups), sex (male or female), living area (rural or urban), and socioeconomic status (from least, U1, to most deprived, U5). The overall trends were quantified using the percentage change (PC) between 2007 and 2019. Results: Among 4,656,197 and 4,798,114 residents from 2007 to 2019, the number of opioid users, dispensations and morphine milligram equivalents per 1,000 individuals increased 12% (percentage change: 95% confidence interval (CI) 11.9-12.3%), 105% (95% confidence interval 83%-126%) and 339% (95% CI 289%-390%) respectively. Tramadol represented the majority of opioid use in 2019 (61, 59, and 54% of opioid users, dispensations, and total MME, respectively). Individuals aged 80 years or over reported the sharpest increase regarding opioid users (PC: 162%), dispensations (PC: 424%), and MME (PC: 830%). Strong opioids were increasingly prescribed for non-cancer pains over the years. Conclusion: Despite the modest increase of opioid users, opioid dispensations and MME increased substantially, particularly in the older population. In addition, strong opioids were incrementally indicated for non-cancer pains over the years. These findings suggest a transition of opioid prescriptions from intermittent to chronic and weak to strong and call for more rigorous opioid stewardship.