On 26 October, Manfred fled from Teano, whose loyalty was doubtful, and fled to his loyal Saracens in the town of Lucera. At Lucera he had access to the Imperial treasury, with which he could pay his troops. From Lucera he led an army, principally composed of Germans (and deserters from the papal army), against the papal army. The armies met at Foggia on 2 December, and the Papal army was soundly defeated. Four thousand papal mercenaries were killed. Cardinal Guglielmo fled to Naples. Five days after the battle, on the Feast of S. Andrew, 7 December, around the time of Vespers, Innocent IV himself died, attended by the spiritual ministrations of Cardinal Rinaldo dei Conti di Segni. He and the Papal Curia had been staying in Naples, the Pope occupying the palazzo that had once belonged to Frederick II's secretary, Peter de la Vigne. The only evidence of the cause of his death comes from Matthew of Paris, who states that, on the road from Capua to Naples, the Pope suffered a sudden and sharp attack of pleurisy, which could have had any of a number of causes. Remarkably for the times, poison is not mentioned. He was treated by Cardinal John of Toledo, to no avail. On 8 December, the body was buried in the Cathedral of Naples. The first to react to the disaster at Foggia was the Podesta of the city of Naples, Beretholinus Tavernerius, a citizen of Parma. He had the gates of the city closed immediately. It is said that he did this to prevent the cardinals from leaving the city and taking the Election anywhere else. This was not done out of anything so inane as city pride. He knew that Manfred was likely to attempt to capitalize on his unexpected victory, and that Naples would be the prime target. It would require a pope, around whom the troops could rally, by whom the troops could be paid, whose troops would defend Naples as long as the Pope and Roman Curia were in residence. Closing the gates was not a step leading to the idea of a Conclave, but only a wise and prudent measure to defend everyone's best interests by getting a pope as soon as possible. News was brought to the remains of the papal army at Ariano that the Pope was dead, by certain cardinals (perhaps including Ottobono Fieschi whose family had much to lose and perhaps much to gain), who advised that the Legate, Cardinal Gulielmo Fieschi, should join them to elect a pope.