At least four Popes were legally married before receiving holy orders; St. Hormisdas (514 to 523), Adrian II (867 to 872), John XVII (1003), and Clement IV (1265 to 68) — though Hormisdas was already a widower at the time of his election.