Obsessive-compulsive disorder (OCD) is heterogeneous. Clinical presentation of OCD differs by sex and age-of-onset and evidence supports classification based on these subtypes. The prevalence of OCD in the general population is 2%. However, it has been established that women tend to experience onset and exacerbation of OCD during reproductive milestones. In particular, the prevalence of postpartum OCD is between 4 to 9%. This study seeks to examine the effects of past childhood maltreatment and S/Lg-allele status of the 5-HTTLPR polymorphism on perinatal obsessive-compulsive symptoms and aberrant resting state functional connectivity in the postpartum period. Forty women participated in the first visit and sixteen women have been followed up with in the postpartum period. 5-HTTLPR genotype was determined from whole blood samples via polymerase chain reaction and a restriction fragment length digest. We used the Yale-Brown Obsessive-Compulsive Scale and Perinatal Obsessive-Compulsive scale to measure symptom severity. Resting state functional connectivity was determined from functional magnetic resonance imaging data. Obsessive-compulsive symptoms during late pregnancy are significantly predicted by 5-HTTLPR genotype, past history of total childhood maltreatment or childhood emotional neglect and trait anxiety symptoms. Whereas obsessive-compulsive symptoms during the postpartum period are predicted by poor sleep quality and childhood emotional maltreatment or 5-HTTLPR genotype, childhood emotional maltreatment and trait anxiety symptoms. Seed to region-of-interest analysis was employed to evaluate resting state functional connectivity differences between OCD patients and healthy controls in the postpartum period. Compared to healthy controls, OCD patients show greater connectivity between the caudate nucleus with the orbitofrontal cortex, the pars triangularis and the cingulate area. The insular cortex shows decreased connectivity between the right and left, the dorsal anterior cingulate area and the pars opercularis. The amygdala has increased connectivity with the cingulate area, the calcarine fissure, the supramarginal gyrus and decreased connectivity with the gyrus rectus. The above clinical and neuroimaging findings are in line with past work. However, this is the first study to show both 5-HTTLPR genotype and history of childhood maltreatment predict obsessive-compulsive symptoms in a perinatal population. Further, the resting state data replicates findings in the OCD literature but the study is the first to show this in postpartum women. This study serves as a platform for future work to further investigate both gene-environment interactions and distinct neuroimaging correlates in perinatal OCD.