Coach Andrea Fuentes jumped into the pool after she saw 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 bring her to the edge of the pool.
Alvarez received medical attention beside the pool, Reuters reported, and was subsequently carried off in a stretcher.
It was the second time Fuentes has had to rescue Alvarez, according to Reuters, after she leapt into the pool during an Olympic qualification event last year and pulled her to safety, along with the American’s swim partner Lindi Schroeder.