Many medieval clerics struggled to obey rules which said they must remain celibate.
Medieval
Three Wise Men in a Bed: Bedsharing and Sexuality in Medieval Europe
For high-status medieval men, sharing a meal and a bed had more to do with politics than sex.