What infants eat early in life may shape the immune system and have long‐standing consequences on the health of the host during later life. In the early months post‐birth, breast milk serves as the exclusive and optimal nourishment for infants, facilitating crucial molecular exchanges between mother and infant. Recent advances have uncovered that some maternal factors influence breastfed infant outcomes, including the risk of food allergy (FA). To date, accumulated data show that breastfed infants have a lower risk of FA. However, the issue remains disputed, some reported preventive allergy effects, while others did not confirm such effects, or if identified, protective effects were limited to early childhood. The disputed outcomes may be attributed to the maternal status, as it determines the compounds of the breast milk that breastfed infants are exposed to. In this review, we first detail the compounds in breast milk and their roles in infant FA. Then, we present maternal factors resulting in alterations in breast milk compounds, such as maternal health status, maternal diet intake, and maternal food allergen intake, which subsequently impact FA in breastfed infants. Finally, we analyze how these compounds in breast milk alleviated the infant FA by mother‐to‐infant transmission. Altogether, the mechanisms are primarily linked to the synergetic and direct effects of compounds in breast milk, via promoting the colonization of gut microbiota and the development of the immune system in infants.