On 14 May 1277, while the pope was alone in this apartment, it collapsed; John was buried under the ruins and died on 20 May in consequence of the serious injuries he had received.
Ohranjenih je več njegovih teoloških in medicinskih spisov.