The office of Pope has historically always been a highly important one. Such a role was and is intensely political, with the Pope uniquely being able to influence foreign powers through their people and their faith. This power does not always attract the pious, and the history of the Vatican and the broader Catholic Church
