Pope Eugene IV
After studying civil law, Castiglione became a protonotary apostolic, gaining a reputation as a great canonist and sacred orator. Pope Eugene IV named him a secretary apostolic.