John was also confronted with adversaries on the home front as well as the rivalries for the imperial crown. After fending off Lambert, duke of Spoleto, John presided at a [[council]] at Troyes in 876 that [[excommunication|excommunicated]] supporters of Carloman of the West Franks, including Bp. Formosus of Porto. In 879, John agreed to the restoration of [[Patriarch]] [[Photius the Great|Photius]] to the [[see]] of Constantinople.
VII was murdered on [[December 16]], 882, apparently by members of his household, the first pope of Rome to be assassinated.