Between 1999 and 2014, the prevalence of opioid use disorder (OUD) among pregnant women quadrupled in the USA. The standard treatment for peripartum women with OUD is buprenorphine. However, the maternal behavior neurocircuit that regulates maternal behavior and mother‐infant bonding has not been previously studied for human mothers receiving buprenorphine treatment for OUD (BT). Rodent research shows opioid effects on reciprocal inhibition between maternal care and defence maternal brain subsystems: the hypothalamus and periaqueductal gray, respectively. We conducted a longitudinal functional magnetic resonance imaging (fMRI) pilot study in humans to specifically examine resting‐state functional connectivity (rs‐FC) between the periaqueductal gray and hypothalamus, as well as to explore associations with maternal bonding for BT. We studied 32 mothers who completed fMRI scans at 1 month (T1) and 4 months postpartum (T2), including seven mothers receiving buprenorphine for OUD and 25 non‐OUD mothers as a comparison group (CG). The participants underwent a 6‐minute resting‐state fMRI scan at each time point. We measured potential bonding impairments using the Postpartum Bonding Questionnaire to explore how rs‐FC with periaqueductal gray is associated with bonding impairments. Compared to CG, BT mothers differed in periaqueductal gray‐dependent rs‐FC with the hypothalamus, amygdala, insular cortex and other brain regions at T1, with many of these differences disappearing at T2, suggesting potential therapeutic effects of continuing buprenorphine treatment. In contrast, the “rejection and pathological anger” subscale of the Postpartum Bonding Questionnaire at T1 and T2 was associated with the T1‐to‐T2 increases in periaqueductal gray‐dependent rs‐FC with the hypothalamus and amygdala. Preliminary evidence links maternal bonding problems for mothers with OUD early in the postpartum to connectivity between specific care and defence maternal brain circuits, which may be mitigated by buprenorphine treatment. This exploratory study supports a potential mechanism for investigating both the therapeutic benefits and risks of opioids for maternal care and bonding with infants.