PETER KOHALMI/AFP via Getty Images

USA artistic swimmer Anita Alvarez, who fainted underwater at the World Championships on Wednesday, was prohibited from participating in the final in Budapest on Friday.

Alvarez (center) is pictured congratulating a teammate during the finals on Friday morning.

OLI SCARFF/AFP via Getty Images

Alvarez, 25, fainted and sank to the bottom of the pool after completing her solo routine during the Budapest 2022 World Aquatics Championships on Wednesday.

OLI SCARFF/AFP via Getty Images

She was dramatically rescued by her coach, Andrea Fuentes, who dove into the water and scooped her off the pool floor.

Fuentes, a four-time Olympic medalist in swimming, later said she dove into the water after the lifeguards did nothing to help Alvarez.

OLI SCARFF/AFP via Getty Images

"I think she was at least two minutes without breathing because her lungs were full of water," said Fuentes, adding that the swimmer's heart was beating and her vital signs were OK.

Dean Mouhtaropoulos/Getty Images

Alvarez recovered quickly and had planned to participate in the final on Friday after she was cleared medically.

In an update on Instagram on Friday, Alvarez wrote, "know that I am okay and healthy! I appreciate all of the messages of support and hope everyone can respect that my team and I still have two more days of competition to be focused on here in Budapest."

She said she hoped people would understand that USA Artistic Swimming and she "have a job to finish" – whether it is in the water or on the sidelines.

However, a FINA official said the swimming organization asked team USA to remove Alvarez from the competition after she underwent a full medical examination Friday morning. The FINA official said he did not know the result of her medical exam.

Alvarez told NBC's "Nightly News" on Thursday that everything went black after she completed her routine.

"And then, I remember going down and just being ... kinda like, 'Uh oh.' Like, 'I don't feel too great.' And, that's the last thing I remember, actually," she said.

Fuentes said she rescued Alvarez during a similar incident last year.

"I've seen it happen to her before," Alvarez's mother told WIVB-TV. "Never in competition, though. I knew right away. On their last element, I could tell something was up."

OLI SCARFF/AFP via Getty Images

A U.S. synchronized swimming coach dived into the pool to save one of her swimmers who fainted underwater after a solo routine in Budapest on Wednesday.

Anita Alvarez, 25, had just competed in the final of the women's solo free event during the World Championships in Budapest when she lost consciousness and sank to the bottom of the pool on Wednesday.

OLI SCARFF/AFP via Getty Images

Coach Andrea Fuentes reacted quickly and dove into the pool when she saw Alvarez didn't come up to breathe.

"When you finish, you really want to breathe because you hold your breath for a long time and the first thing you want to do is breathe," Fuentes told "Good Morning America" on Thursday. "I saw she was going down, so I was like immediately knew that something was happening so I went as far as I could and I reach her and grab her to the surface and tried to make her breathe."

Photo may have been deleted

Screenshot/GMA

Fuentes said she dived into the water because the lifeguards didn't do anything to help the stricken swimmer.

A male swimmer who was waiting to compete next jumped into the water to help after Fuentes got her to the surface.

Dean Mouhtaropoulos/Getty Images

After pulling Alvarez from the pool, Fuentes administered CPR until medics and the team doctor took over. "Heart rate was fine, blood pressure fine, oxygen, glucose, everything was good so I knew she was okay."

Fuentes said this is the second time that she rescued Alvarez after a fainting spell in the pool. Fuentes saved Alvarez during a similar incident last year at the Olympics qualifying event in Barcelona.

She said fainting spells in the pool are not uncommon. "The sport is extremely hard. Sometimes people pass out. Our job is to discover our limits, that's what we do as athletes," said Fuentes.

Fuentes wrote in an Instagram post: "it was her best performance ever, she just pushed through her limits and she found them."

Alvarez recovered and is doing fine. She is expected to return to competition on Friday for the free team final, pending expert medical evaluation.