When we talk about breastfeeding, we often focus on the benefits for baby—of which there are many. But as any mama who’s spent hours upon hours in the middle of the night nursing knows, it’s a commitment that takes two.

So it may help to know there’s an interesting health benefit in breastfeeding for mothers as well: According to a study published in 2018, breastfeeding for at least six months slashes a woman’s risk for developing type 2 diabetes nearly in half.

For the study published in the journal JAMA Internal Medicine, researchers followed 1,238 women with an average starting age of 24 for approximately 30 years. In the duration, each woman had at least one baby. The participants were screened 7 different times for diabetes, and results found that 182 women developed type 2 diabetes over the course of the study.

The fascinating part: Even when all other risk factors were controlled, the mothers who breastfed for six or more months with any baby were 48% less likely to develop type 2 diabetes.

In fact, any amount of breastfeeding less than six months was still tied to a 25% reduced risk.

As for why this risk reduction occurred, the researchers have an interesting hypothesis: Lactating women have lower levels of circulating glucose and insulin secretion, which the researchers suggest positively influence the ability of the pancreas to control blood sugar.

Amazing as that is, previous studies have shown breastfeeding can also help guard women from breast cancer and ovarian cancer, plus it can deepen the bond with baby and decrease the little one’s risk for SIDS.

This isn’t to say breastfeeding is the right option for every family—but it should demonstrate the importance of fostering a culture that supports breastfeeding.

A version of this story was originally published on Jan. 16, 2018. It has been updated.