In the Middle Ages, monasteries were centers of brewing mastery, perfecting recipes and laying the foundations of modern brewing tradition.