Stephen VI succeeded Pope Formosus, who was deposed after a trial that was considered invalid. Stephen VI exhumed the body of Formosus and had it tried for heresy. After the body was found guilty, it was thrown into the Tiber River.
The Papal Puzzle: Unveiling the Enigmatic Reign of Pope Formosus