In this critical situation of its affairs the papal court was at sufficient pains to cultivate the friendship of the powerful sovereigns of France and Spain, of whom the latter was at that time emperor of Germany.