Born to the nobility, Alphonsus was a child prodigy; he became extremely well-educated, and received his doctorate in law from the University of Naples at age 16. He had his own legal practice by age 21, and was soon one of the leading lawyers in Naples, though he never attended court without having attended Mass first. He loved music, could play the harpsichord, and often attended the opera, though he frequently listened without bothering to watch the over-done staging. As he matured and learned more and more of the world, he liked it less and less, and finally felt a call to religious life. He declined an arranged marriage, studied theology, and was ordained at age 29.