​In 897 AD a Dead Pope Was Dug Up and His Rotting Corpse Put on Trial
Even after his death, Pope Formosus was held to account for his supposed crimes against the church, when his corpse was dug up and taken to court.
Source: ancient-origins.net