VATICAN CITY — Archbishop John Nienstedt and a deputy bishop resigned Monday after prosecutors there charged the archdiocese with having failed to protect children from unspeakable harm from a pedophile priest.

The Vatican said Pope Francis accepted the resignations of Nienstedt and Auxiliary Bishop Lee Anthony Piche. They resigned under the code of canon law that allows bishops to resign before they retire because of illness or some other "grave" reason that makes them unfit for office.

Earlier this month, prosecutors charged the Archdiocese of St. Paul and Minneapolis as a corporation of having "turned a blind eye" to repeated reports of inappropriate behavior by a priest who was later convicted of molesting two boys. No individual was named in the indictment.

The resignations came just days after Pope Francis approved the creation of a new tribunal inside the Vatican to hear cases of bishops who failed to protect children from sexually abusive priests. Francis' decision followed years of criticism that the Vatican had never held bishops accountable for having ignored warnings about abusive priests and simply moved them from parish to parish rather than report them to police or remove them from ministry.

In April, Francis accepted the resignation of U.S. bishop Robert Finn, who had been convicted in a U.S. court of failing to report a suspected child abuser.

The criminal charges against the archdiocese stem from its handling of Curtis Wehmeyer, a former priest at Church of the Blessed Sacrament in St. Paul, who is serving a five-year prison sentence for molesting two boys and faces prosecution involving a third boy in Wisconsin.

Prosecutors say church leaders failed to respond to "numerous and repeated reports of troubling conduct" by Wehmeyer from the time he entered seminary until he was removed from the priesthood in 2015. The criminal complaint says many people — including parishioners, fellow priests and parish staff — reported issues with Wehmeyer, and many of those claims were discounted.

Here's Nienstedt's statement:

In order to give the Archdiocese a new beginning amidst the many challenges we face, I have submitted my resignation as Archbishop of Saint Paul and Minneapolis to our Holy Father, Pope Francis, and I have just received word that he has accepted it. The Catholic Church is not our Church, but Christ's Church, and we are merely stewards for a time. My leadership has unfortunately drawn attention away from the good works of His Church and those who perform them. Thus, my decision to step down.

It has been my privilege the last seven years to serve this local Church. I have come to appreciate deeply the vitality of the 187 parishes that make up the Archdiocese of Saint Paul and Minneapolis. I am grateful for the support I have received from priests, deacons, religious men and women and lay leaders, especially those who have collaborated with me in the oversight of this local Church.

I leave with a clear conscience knowing that my team and I have put in place solid protocols to ensure the protection of minors and vulnerable adults.

I ask for continued prayers for the well-being of this Archdiocese and its future leaders. I also ask for your continued prayers for me.