Complex sentence: Within months Clement IV was dead as well, and was buried at Viterbo, where he resided throughout his pontificate.
Split into simpler sentences: Within months Clement IV was dead too, and buried at Viterbo. He was buried at Viterbo, where he had resided throughout his pontificate.