Pope Pius II wrote a popular erotic book called 'The Tale Of Two Lovers' before assuming office.

Pope Pius II wrote a popular erotic book called “The Tale Of Two Lovers” before assuming office.

Source