Dante was an outstanding poet in the Renaissance.
The slogan of the Renaissance is humanism, so the Pope represents religion.
Dante used irony, ridicule and banter here. Pope and religious figures who worked for God were finally sent to hell and abandoned by God.