Thank You, Marcus.
The classic scenario for that one is the hero accidentally causes the death of someone close to the villain, who then has the hero brought to "trial" for murder. I remember a Golden Age Batman story where a gang of robbers, all brothers, died one by one as a result of being chased by Batman. (For example, one of them was being pursued at a carnival and in trying to get away stumbled into the back of a shooting gallery, where he was shot by the patrons.) The leader of the gang blamed Batman for all the deaths, and after managing to capture him basically sentenced him to death right then and there. He took him into a specialized execution room, and forced Robin to choose between an electric chair, a gallows, a firing squad, and a couple of other methods which I don't remember.
Another possibility is a villain with an anarchist/madcap bent puts the hero on trial for being the "ultimate conformist"--that by fighting crime and striking terror into people's hearts they encourage compliance and submission to authority, and in doing so impose conformity and suppress freedom and creativity. Or something like that.
Hope that helps.