gregory had many enemies in the higher ranks of the german clergy, so henry iv declared that gregory was no longer pope and that the romans should choose a new pope . when gregory learned of this he excommunicated henry iv, declared he was no longer emperor, and told his subjects that they no longer had to obey him as they had sworn to do.