Medieval clergy whether living in monasteries or serving the churches and cathedrals took the vow of celibacy. One exception to this was the military-religious order of Santiago. Established in the 12th-Century to fight the Moors and protect pilgrims en route to the shrine of Santiago de Compostela, its members were allowed to marry. However they were to remain continent during Advent, Lent, and during service other festivals when they went on retreat. Women were admitted to the order and their primary job was the education of the children of the knights.
Please considering nominating my medieval novel on Kindle Scout.