Coach Andrea Fuentes jumped into the pool after watching the 25-year-old artistic swimmer sink to the bottom at the end of her routine in the women’s solo free event.
Fuentes, a four-time Olympic medalist in synchronized swimming, lifted Alvarez to the surface before helping her to the edge of the pool.
Alvarez received medical attention next to the pool, Reuters reported, and was then taken away on a stretcher.
It was the second time Fuentes had to save Alvarez, according to Reuters, after she jumped into the pool during an Olympic qualifying event last year and pulled her to safety along with American swimming partner Lindi Schroeder.
“We sometimes forget that this happens in other endurance sports. Marathon, cycling, cross country … we’ve all seen images where some athletes don’t make it to the finish and others help them get there,” Fuentes added.
“Our sport is no different from others. Only in a swimming pool do we look for limits and sometimes we find them. Anita is feeling well now and the doctors also say she is fine.”