Ryan was ordained to the priesthood by Archbishop Peter Richard Kenrick on September 8, 1853. At age 21, he was below the age requirement for ordination but was granted a dispensation by Pope Pius IX. He was then appointed an assistant rector at the Cathedral of St. Louis, and was advanced to rector in 1856. In 1860, he was named pastor of the in St. Louis, where he built a church and parochial school. During the Civil War, he served as a chaplain at the Gratiot Street Prison. Following the war, he was transferred to in St. Louis, and accompanied Archbishop Kenrick to the Second Plenary Council of Baltimore in 1866. While on a visit to Europe in 1868, he delivered the English course of Lenten lectures in Rome at the invitation of Pius IX. Upon his return to St. Louis later that year, he was made vicar general of the Archdiocese. He administered the Archdiocese while Archbishop Kenrick attended the First Vatican Council.
Episcopacy
On February 15, 1872, Ryan was appointed Coadjutor Archbishop of St. Louis and Titular Archbishop of Tricomia by Pius IX. He received his episcopal consecration on the following April 14 from Archbishop Kenrick, with Archbishop Patrick Feehan and Bishop Joseph Melcher serving as co-consecrators. His titular see was changed to Salamis on January 6, 1884. After the death of Archbishop James Frederick Wood, Ryan was named the second Archbishop of Philadelphia, Pennsylvania, on June 8, 1884. His installation took place at the Cathedral of SS. Peter and Paul on the following August 20. During his 27-year-long tenure, Ryan erected 170 churches and 82 schools; increased the number of priests by 322 and nuns by 1,545; and oversaw a rise in the Catholic population from 300,000 to 525,000. During that time also the Roman Catholic High School for Boys was built, and put in operation; high school centers for girls taught by the different communities were established; a new central high school for girls was partly endowed and begun; St. Francis' Industrial School for Boys was endowed and successfully operated, the Philadelphia Protectory for Boys was erected; St. Joseph's Home for Working Boys was founded; a new foundling asylum and maternity hospital was built; a new St. Vincent's Home for younger orphan children was purchased with the archbishop's Golden Jubilee Fund of $200,000; a third Home for the Aged was erected; a Memorial Library Building, dedicated to the Archbishop, was begun at St. Charles Borromeo Seminary, Overbrook; and the three Catholic hospitals of the city doubled their capacity. He also established foreign churches in the diocese for the Italians, Poles, Greeks, Slovaks, Lithuanians, and several other nationalities. He founded two congregations for African Americans, and was appointed to the U.S. Indian Commission by President Theodore Roosevelt. In 1888, he again visited Rome, where he preached the sermon at the laying of the cornerstone of St. Patrick's Church and presented Pope Leo XIII with a gift from President Grover Cleveland. Ryan died at age 79, nine days before his eightieth birthday.