The coach, Guillermo Garcia, 36, had been outside the Walmart raising money for his daughter’s soccer team when a gunman approached and opened fire. In a rampage that left two dozen people injured, in addition to the 22 who were killed, Mr. Garcia’s injuries were among the most extensive. He remained in intensive care for weeks, undergoing more than 17 surgeries, and had been hospitalized ever since the attack.
He died Saturday night at Del Sol Medical Center, the hospital where he was being treated.
“After a nearly nine-month fight, our hearts are heavy as we report Guillermo ‘Memo’ Garcia, our last remaining patient being treated from the El Paso shooting, has passed away,” David Shimp, the hospital’s chief executive, said in a statement. “His courage, his strength and his story have touched many lives, including those of our caregivers, who tirelessly fought with him and for him every step of the way.”
With Mr. Garcia gravely wounded in the hospital, his family had lived a day-by-day, moment-by-moment existence. On many days, his wife, Jessica, dropped the children off at school in the morning and drove to the hospital, eager to see how her husband was doing.
Some days were hopeful, like the one in late August, when he breathed on his own and asked in a whisper for some water, his children and the comforts of home. Other days were filled with pain and uncertainty, and she stayed at the hospital late into the night, crawling into bed just before her children woke up for school, so that they would not know that something was wrong.
In this way, the agony of a shooting that lasted only minutes dragged out for months in El Paso, a close-knit border city that is 80 percent Hispanic.
The Garcias, who were high school sweethearts, had come to the Walmart on the morning of Aug. 3 to raise money for their daughter’s soccer team, the El Paso Fusion, which Mr. Garcia also helped coach.
The soccer families were outside selling lemonade and aguas frescas when a man with an AK-47-style rifle walked up and opened fire. All around, friends and family were collapsing. Mr. Garcia’s wife was shot in the legs. His friend, a fellow soccer coach, was shot five times in the leg and the side of his back. Another soccer mom was shot in the foot.
The gunman, who is white, later confessed and told the police that he had targeted Mexicans, the authorities said. The authorities also said that the gunman wrote a four-page manifesto that said he was carrying out the attack in “response to the Hispanic invasion of Texas.”
At a Democratic presidential debate in Houston six weeks after the shooting, Beto O’Rourke, the former congressman from El Paso, cited Mr. Garcia and his family as an example of grit and inspiration.
“Everything that I’ve learned about resilience, I’ve learned from my hometown of El Paso,” Mr. O’Rourke said, describing how he had visited Mr. Garcia and the other injured soccer coach, Luis Calvillo, at the hospital.
Mr. Calvillo was finding ways to direct the team from the hospital bed, Mr. Garcia was “fighting for his life,” and their wives arrived at the hospital daily to care for them.
“They exemplify resilience to me,” Mr. O’Rourke said.
Manny Fernandez reported from Houston, and Sarah Mervosh from Canton, Ohio.