Sleep problems in young children are among the most common concerns reported to paediatricians. Sleep is thought to have important regulatory functions, and sleep difficulties in early childhood are linked to several psychosocial and physiological problems. Moreover, several prenatal factors have been found to influence infants' sleep. Among them, most of the studies have been focused on maternal prenatal depression and/or anxiety as potential risk factors for sleep problems in childhood, whereas other relevant psychological factors during pregnancy have not received as much attention. Therefore, we aimed to examine the effect of several psychiatric maternal risk factors during pregnancy (i.e. symptoms of anxiety, depression, insomnia, alcohol use, seasonality, attention deficit and hyperactivity disorder and/or stressful life events) on the onset of some sleep problems related to sleep quality and sleep practices in 3-month-old infants. We examined 1,221 cases from a population-based birth cohort, with subjective measures during pregnancy in mothers, and at 3 months after birth in the infants. The findings showed that all the maternal risk factors during pregnancy, except for symptoms of alcoholism and sleepiness, were related to sleep difficulties in infants. Interestingly, attention deficit and hyperactivity disorder symptomatology in mothers during pregnancy was the only variable that predicted more than two sleeping difficulties (i.e. long sleep-onset latency, co-sleeping with parents and irregular sleeping routines) at 3 months old. Our results highlight the relevance of maternal risk factors during pregnancy, and not only prenatal depression and/or anxiety, as variables to be considered when examining sleep difficulties in infants.