Rates of overweight and obesity have been increasing worldwide. Breastfeeding reduces the risk of developing overweight in childhood and adolescence; however, maternal obesity is associated with shorter breastfeeding time, intention to breastfeed for shorter periods, less propensity to start and early weaning. The main objective of this study was to verify the risk for the development of overweight in children of mothers with overweight and obesity between the first and third year of life according to the duration of exclusive breastfeeding (EBF). The present study is part of a birth cohort, composed of three stages of assessment: prenatal care (20 to 25 weeks of gestation), birth and follow-up (between the first and third years of life). The three stages of the study were completed by 1.069 mother-child pairs. Information on socioeconomic characteristics, anthropometric data of mothers and infants, type of delivery, birth weight, time of exposure to foods other than breast milk and duration of EBF were obtained. 58,1% of mothers and 7,5% of infants were overweight in the follow-up. The average duration of EBF was 3,7 months and the median was 4,0 months (SD = 2,25). Among the children of overweight mothers, there were no differences between the RR of the variables selected for overweight among infants who were in EBF for a longer period (≥ 4.0 months) when compared to those who were in EBF for shorter time. In the global analysis, without adjusting for maternal overweight, overweight and obese mothers had a relative risk (RR) of 1,54 (95% CI: 1,22-1,94) of having overweight children; after adjusting the maternal BMI and other variables, there were no differences between the RR for excess weight between children who were in EBF≥4,0 months and those who were for a shorter period. In this study, there were no differences between the risk of developing overweight in children of mothers with overweight and obesity according to the duration of EBF.