Answer
Law was Pope Gregory XIII's main educational background. He studied law at the University of Bologna and later taught law at the University of Perugia. His legal training and expertise played a significant role in his papacy, as he was known for his reforms of the legal system and his efforts to strengthen the authority of the Catholic Church.