Sleep problems reported by parents affect 20% to 30% of infants. Few studies focused on the longitudinal association between infant feeding practices and sleep, especially in France. Analyses were based on 8,696 infants from the French national birth cohort ELFE. Collection of feeding practices from birth to 10 months allowed for the identification of trajectories of use of baby cereals and thickened formula by group‐based trajectory modelling and calculation of duration of any breastfeeding (BF) and age at complementary feeding introduction (CFI) excluding baby cereals. Total sleep duration (TSD), night waking (NW) and sleep onset difficulties (SOD) were reported at age 1. Associations between feeding and sleep were tested by multinomial logistic regressions. BF duration ≥6 months was associated with parent‐reported frequent NW, SOD and TSD ≤ 12 h/24 h at age 1. For TSD and SOD, this association was no longer significant after accounting for parental sleep‐related practices. Early use of baby cereals (≤5 months) was associated with poor sleep. Early CFI (<4 months) was associated with shorter TSD and SOD but not NW. Early use of thickened formula (only <6 months) was related to poor sleep at age 1 (NW and SOD), whereas late (around 6 months) use of thickened formula was associated with better sleep. BF duration ≥6 months was related to poor sleep at age 1 but not after adjustment on 1‐year parental sleep‐related practices except for NW. The use of baby cereals or early CFI was not related to better sleep at age 1.