A Tennessee mother made the brave decision to carry a dying baby to term in order to donate her organs, a report said Thursday.

While mother Krysta Davis, 23, was 18 weeks pregnant, doctors told her that her daughter, Rylei, would not live more than 30 minutes after birth, so they provided her two options of either inducing labor immediately or carrying the baby to term and donate the organs, People reported.

Rylei was diagnosed with an abnormality called anencephaly, a rare condition in which an infant is missing parts of the brain or skull, the report said.

Mom Carries Dying Baby to Term to Donate Her Organs: She’ll Give ‘Other Babies a Second Chance.’ Krysta Davis and Derek Lovett spent a week with their ailing daughter Rylei before the baby passed away and her organs were donated.

“We decided that even if we couldn’t bring our daughter home, no mother would have to go through what we were going to go through,” Davis, of Cleveland, Tenn., told the magazine.

Rylei was born on Christmas Eve and died on New Year’s Eve.

“It’s like she was fighting to give us more time. It was amazing,” the mother said of her daughter. “She surprised everyone by being alive for that week.”

Rylei donated two heart valves that will go to two children in need, while her lungs will be donated for research and development of her condition anencephaly, Tennessee’s WTVC-TV reported.

Davis and boyfriend Derek Lovett, 26, shared their journey with Rylei on a Facebook page titled, “Rylei Arcadia: An Unexpected Journey.”

What a journey this mom went through, she gave other babies a fighting chance and parents a gift.