The coach for U.S. artistic swimmer Anita Alvarez reportedly jumped into action on Wednesday when the athlete fainted while performing at the World Championships.

Coach Andrea Fuentes dove into the pool with all her clothes on and grabbed Alvarez, who was sinking to the bottom of the pool. When she got the swimmer to the side of the pool with the help of another person, Alvarez was not breathing. 

Anita Alvarez rescued

Coach Andrea Fuentes rescues Anita Alvarez from the bottom of the pool after she passed out at the World Aquatics Championships in Budapest on June 22, 2022. (Oli Scarff/AFP via Getty Images)

Alvarez had just finished her solo free event at the competition in Budapest.

Fuentes called Alvarez’s swim her "best performance ever" in an Instagram post Wednesday night, adding, "she just pushed through her limits and she found them." 

RETIRED NBA STAR VINCE CARTER HAD NEARLY $100K STOLEN FROM HOME IN SCARY INCIDENT, POLICE SAY

Anita Alvarez rescue

Anita Alvarez receives medical attention during the women's solo free final in Budapest, Hungary, on June 22, 2022. (Reuters/Lisa Leutner)

Fuentes noted that athletes sometimes pass out or barely finish their races in running and cycling. "Our sport is very hard too," she wrote.  

Alvarez plans to compete in Friday’s team event, Fuentes said, according to The Guardian. 

PLAYING HURT, OFTEN WILLINGLY, IS COMMON FOR NFL PLAYERS 

Anita Alvarez rescued

Anita Alvarez receives assistance during the women's solo free final. (Reuters/Lisa Leutner)

"It was a big scare," Fuentes reportedly told Spanish newspaper Marca. "I was scared because I saw she wasn’t breathing, but now she is doing very well."

Anita Alvarez swimming

Anita Alvarez performs during the women's solo free preliminary at the FINA World Championships in Budapest, Hungary. (Reuters/Marton Monus)

Alvarez is competing in her third world championships and, reportedly, Fuentes has dived into the competition pool once before when she fainted. 

CLICK HERE TO GET THE FOX NEWS APP

"I’ve seen it happen to her before," Alvarez's mother told WIVB-TV after she saw her daughter faint during an Olympic qualifying event a year ago while watching the Spain competition on TV in Buffalo, New York. "Never in competition, though. I knew right away. On their last element, I could tell something was up."