IMPORTANCEEarly identification of people who use opioids in pregnancy may improve health outcomes for pregnant people and infants. However, characterization of diverse circumstances surrounding type of opioid use and indications for opioid use are lacking. OBJECTIVE To develop clinically distinct groups of people who use opioids in pregnancy and to evaluate their association with drug overdose or death up to 1 year post partum. DESIGN, SETTING, AND PARTICIPANTS This is a population-based, repeated cross-sectional study conducted in Ontario, Canada, with participants who used opioids in pregnancy who had a live birth