Mothers vary in duration of breastfeeding. These individual differences are related to a variety of demographic and individual maternal factors including maternal hormones, mood and early experiences. However, little is known about the role of genetic factors. We studied single-nucleotide polymorphisms (SNPs) in the OXT peptide gene (rs2740210; rs4813627) and the OXT receptor gene (OXTR rs237885) in two samples of mothers from the Maternal adversity, Vulnerability and Neurodevelopment study (MAVAN), a multicenter (Hamilton and Montreal, Canada) study following mothers and their children from pregnancy until 7 years of age. Data from the Hamilton site was the primary sample (n = 201) and data from Montreal was the replication sample (n = 151). Breastfeeding duration, maternal mood (measured by the CES-D scale) and early life adversity (measured by the CTQ scale) were established during 12 months postpartum. In our primary sample, polymorphisms in OXT rs2740210, but not the other SNPs, interacted with early life adversity to predict variation in breastfeeding duration (overall