In 1230 Pope Gregory IX called Raymond of Penafort to Rome. Church law was a mess with no codification. Raymond used centuries of papal decrees to write the first code of canon law. St. Raymond of Penafort is the father of canon law and it's patron saint.