
When babies are first born, their immune systems are not yet fully matured. This can mean they're more vulnerable to infections or illnesses. There are two ways in which a newborn baby's immune system is supported until it is strong enough to fight off pathogens on its own. Before birth, a mother's immunity is protecting her baby. After birth, this protection lasts for awhile, shielding the baby from germs in the outside world.
Babies can enjoy extended protection from their mother's immune systems for a great deal longer if they are breastfed. Breastfeeding is one of the key ways to extend the time during which a baby is protected by their mother's immune system.
Passive vs. active immunity
There are two categories of immunity: passive and active immunity. These labels refer to how your body develops protection against a certain disease or toxin.
Passive immunity. This type of immunity occurs when a person is given antibodies — the body's response to a pathogen — rather than producing them through their own immune system. Newborn babies get passive immunity from their mothers through the placenta before they're born. A mother shares the antibodies that she has with her unborn baby.
Each baby's passive immunity is unique because each mother's immune system is unique. The exact kinds and amounts of antibodies in a baby's blood are a reflection of its mother's levels at birth. These differences can impact how long passive immunity lasts.
Active immunity. This type of immunity occurs when your body is exposed to a particular disease and develops antibodies to fend it off. Active immunity can happen in two ways: naturally or vaccine-induced.
When you're exposed to a pathogen (like a bacteria or virus) in the world, your immune system learns to "recognize" that pathogen and can protect you in the future. If you receive a vaccine, that's a way to "teach" your immune system safely how to do the same thing — learn to recognize the pathogen and protect you from it if you're ever exposed.
Babies begin to build active immunity shortly after birth as they are exposed to germs in the outside world and as they begin to receive the necessary immunizations to keep them healthy.

QUESTION
Newborn babies don't sleep very much. See AnswerHow long does mother's immune system protect baby?
Studies are still ongoing in this subject, so there's no precise answer. The exact amount of protection that a baby receives from its mother depends on the antibodies that the mother has in her immune system. Research indicates that a baby's passive immunity lasts for around six months.
One study examined the passive immunity to measles in infants. It discovered that the babies' immunity to the disease diminished over time, and none of them had immunity by the age of 9 months.
In other words, it isn't like flipping a switch. There isn't a cutoff date at which a baby is no longer protected by the passive immunity provided by its mother. Rather, immunity to certain pathogens slowly decreases over several months after birth.
Breast milk, however, contains antibodies that can extend a baby's ability to fight infection.
Among other important elements, breast milk has the antibodies that a mother has in her body (from past infections) as well as those she makes in response to illnesses that she encounters while breastfeeding. This extra support for the developing immune system can help keep newborn babies healthy while their passive immunity wanes and their own immune systems continue to grow stronger.
Latest Pregnancy News
Daily Health News
Other immunological benefits of breastfeeding
Studies also show that antibodies aren't the only leg up babies get when developing the components of their own immune systems. One study demonstrated that breastfeeding actively encourages an infant's ability to develop critical elements like lymphocytes, cytokines, and other key pieces of a strong immune system.
Components of breastmilk are also directly anti-inflammatory, which helps a newborn's ability to manage their immune response to specific germs, as well as protecting against autoimmune conditions like celiac disease and certain kinds of allergies.
Studies have shown that babies who are breastfed — especially those breastfed by vaccinated mothers — experience fewer infections both in the developing world as well as developed nations like the United States.

SLIDESHOW
Parenting Guide: Healthy Eating for Kids See SlideshowHealth Solutions From Our Sponsors
American Academy of Pediatrics: "Breastfeeding Benefits Your Baby's Immune System."
Annals of Allergy, Asthma, and Immunology: "Breastfeeding provides passive and likely long-lasting active immunity."
Annals of the New York Academy of Sciences: The Transfer of Immunity from Mother to Child."
CedarsSinai: "Liquid Gold: How Breast Milk Could Pass Along COVID-19 Immunity." Centers for Disease Control and Prevention: "Immunity Types."
Children's Hospital of Philadelphia: "Types of Immunity."
Frontiers in Immunology: "Vertically Transferred Immunity in Neonates: Mothers, Mechanisms and Mediators."
Pediatrics and Adolescent Medicine: "How Long Does Passive Immunity to Measles Last in Infants?"
Progress in Clinical and Biological Research: "Human Milk: Defense against infection."
Top How Long Do Babies Have Mother’s Immune System? Related Articles
Breastfeeding (and Formula Feeding)
It's important to know whether you will breastfeed or bottle-feed your baby prior to delivery, as the breasts' ability to produce milk diminishes soon after childbirth without the stimulation of breastfeeding. Breast milk is easily digested by babies and contains infection-fighting antibodies and cholesterol, which promotes brain growth. Formula-fed babies actually need to eat somewhat less often since formula is less readily digested by the baby than human milk. This article explores the advantages and disadvantages of both forms of feeding.How Can I Help My Baby With a Stuffy Nose?
It is distressing to all mothers to see their little ones with a stuffy nose and a cold. When your baby is irritable and does not eat, it makes you and your whole family anxious. Fortunately, there are various ways to help your baby with a stuffy nose including steam inhalation, hydration, using tissues and other strategies.How Can I Treat My Baby's Rashes Naturally?
A baby may get rashes due to numerous causes. Try to pin down the cause of rashes in the case of your baby. Is it a diaper rash? Is it a reaction to the baby oil? Is it eczema due to dry skin? Is it a viral infection?How Do I Bring My Baby's Fever Down?
A baby with a fever always makes parents anxious, but fever is actually a defense mechanism of the body. It prepares the body to fight infection. Most fevers do not need antibiotic therapy and may resolve on their own in five to seven days. There are a few things a parent may try to manage the child’s fever and make them feel more comfortable.How Do You Decongest a Baby?
Nose and chest congestion are a common occurrence in babies. They especially occur when seasons change or during the winter months. Most cases of nasal congestion are harmless, but in a few cases where the chest is congested and the baby is not taking feeds, is dull, or has a high fever, it is prudent to seek a medical consultation.How Long Does a Heat Rash Last on a Baby?
Heat rash is a common issue that affects many babies. Learn the signs of heat rash, what causes it, how long it lasts, how doctors diagnose it, and what you can do to treat it.How Your Immune System Functions
What is the immune system and its function? Your immune system finds and kills germ invaders when you are sick from a cold, the flu, or other diseases like COVID-19. Learn every part of your complex immune system, and what diseases come from an overactive or weak immune system.Pregnancy: Birthing, Breastfeeding, and Parenting Classes
Preparing for a baby is an important step in parents' lives. Choosing the right birthing class and method (Lamaze, Bradley, etc.) is important for the mother, baby, and father or support giver. Parenting classes are also information for first time parents. Information is provided about diapering, feeding, and bathing your baby as well as the different stages of child development.What Are the 3 Types of Baby Cries?
Babies cry to tell you their needs. They usually cry for 2-3 hours a day. Sometimes, a bawling baby can be distressing to the anxious parents. Babies may wail for no obvious reason.What Can a Baby Do at 3 Months?
Your three-month-old baby has made tremendous development since birth. Babies who are three months of age have achieved developmental milestones in moving, speaking, interacting, thinking, sensing and sleeping.What Foods to Avoid While Breastfeeding?
Breastfeeding is one of the best ways to bond with your baby. It has myriad benefits for you as well as your baby, but you may want to avoid coffee, tea, chocolate, gassy foods, fish, spicy foods, eggs, nuts, milk and peppermint, parsley and sage as they may cause reactions in your baby.