In Catholicism, the doctrine of the two swords is an exegesis of Luke 22:38 elaborated in the Middle Ages. It can be understood as a particular justification for the Gelasian doctrine of "the sacred authority of the priesthood and the royal power".