A U.S. Army sergeant gave the gold medal she won during the 100-meter freestyle at the 2016 Invictus Games in Orlando, Fla., to a hospital she credits with saving her life. The soldier, Staff Sgt. Elizabeth Marks, ended up at a hospital in London right before she was set to compete at the inaugural Invictus Games in 2014.

Marks was diagnosed with a lung condition. Staff members from Papworth Hospital in Cambridge, England were sent to the hospital in London to care for Marks after she began suffering from respiratory failure, the BBC reported. The team from Papworth put Marks into a medically induced coma and hooked her up to a extracorporeal membrane oxygenation machine, which acts as a second lung, according to the U.S. Department of Defense news service.

Marks, a gifted swimmer who won four gold medals for swimming at the 2016 games, said presenting the medal to the hospital was her chance to give back to those who helped her preserve something precious to her—life.

“It’s the only way I could really thank them for saving my life,” she said to the DOD. “These gold medals are a direct reflection of all the love and support I’ve had. It’s not so much that I’ve earned them, but that the Invictus team has earned them as a whole.”

Papworth Hospital's medical director Dr. Roger Hall said to the BBC that the team who saved Mark’s life was  "extremely proud" of her. He also said that her gift was very thoughtful.

"Elizabeth's fantastic achievement is a good example of how modern medicine can support all of us to not only lead a normal life, following life-threatening conditions, but go on to achieve truly amazing accomplishments," Hall said.

The Invictus Games are the brainchild of Britain’s Prince Harry. They are an Olympics-style competition for wounded and injured service men and women.

Watch the video of Marks receiving one of her medals from Prince Harry below.