Barcelona's game at Cadiz was temporarily halted in the final minutes when a fan suffered a heart attack in the stands on Saturday.
Cadiz said in a statement that the man was successfully treated with a defibrillator by a medical team. He was evacuated on a stretcher and admitted to a local hospital. Cadiz said that Barcelona's players also lent the medics their defibrillator in case it was needed.
Cadiz goalkeeper Jeremias Ledesma helped carry medical equipment, while Barcelona defender Ronald Araujo prayed in the silent Nuevo Mirandilla stadium in southern Spain.
After more than a 10-minute pause with players waiting on the field, the referee ordered them to retire to the locker rooms with Barcelona 2-0 ahead at the time in the Spanish league game. The game resumed for its final eight minutes after more than a half-hour stoppage. Barcelona went on to win 4-0.
"We hope that he gets better as soon as possible," Barcelona coach Xavi Hernandez said.
Cadiz thanked fans for their cooperation.