At her latest trial, Poison Ivy is sentenced to be returned to Arkham Asylum yet again. Gotham City's newest District Attorney, Janet Van Dorn, presses for life imprisonment, but the court's hands are tied by the fact that Ivy was apprehended by Batman instead of a regular police officer. As she leaves the courtroom, Janet is quoted on television as saying (again) that Batman is a disgrace; he is responsible for creating all the "supervillains" in his rogues’ gallery, and acts outside the law. She feels that Batman has made the city dependent on his myth, instead of facing the reality of what needs to be done to suppress crime. When Ivy is returned to Arkham, Harley greets her enthusiastically, confiding that the inmates will be throwing a party soon – courtesy of The Mad Hatter, who has planted his mind control chips on the guards. Ironically, Janet is also Bruce Wayne's latest girlfriend. He arrives at a restaurant to keep a dinner date with her, but she is called away by a phone call. A short time later, the Bat-Signal appears, and Batman receives a note from Gordon informing him that the kidnappers have Janet. He goes to the rendezvous, but is ambushed and knocked out. Batman awakens in a straitjacket in a cell in Arkham. Two-Face informs Janet that, true to her words on television, Batman is going to be put on trial – by them. And she will be his attorney. If she succeeds in defending him, they both go free; fail, and they both die. An impromptu courtroom is set up in the operating theater:
The Accused: Batman
Baliff: Ventriloquist & Scarface;
Prosecutor: Two-Face
Defense Attorney: Janet Van Dorn
Jury: Mad Hatter, Poison Ivy, Killer Croc, Scarecrow, Riddler, and Harley Quinn
Judge: Joker
The crime of which Batman is accused is "creating" each and every one of them: driving them to become criminals, freaks, and monsters. But Janet has studied the histories of the rogues thoroughly, and her defense is brilliant:
Mad Hatter claims he was a harmless scientist, but admits that he was driven mad with love for his young assistant, Alice; (

Janet: I suppose you, like your friends, claim that Batman drove you to be a criminal?
Mad Hatter: He did.
Janet: And yet, as I recall your case, you brainwashed and kidnaped a woman who rejected you?
Mad Hatter: Batman forced me to do it. He was going to take her away from me. I had no choice.
Janet: You could have respected her wishes and left her alone...
Mad Hatter: I'd have killed her first!... Oop. I'd like that last statement stricken from the record, please.
Joker: Record? Is someone supposed to be writing this down? )
Harley thanks Batman for creating her loyal "puddin'," which Janet undermines by revealing that the last time she escaped from Arkham, Joker ratted her out in hopes of reducing his own sentence; ( joker was trying to tell miss van dorn not to tell harley about him ratting her out when harley heard this she attack him croc had to remove her from the court room till she cooled down)
Ivy says it is Batman's fault she is a criminal, since her only crime would have been trying to kill Harvey Dent (now Two-Face); but Janet goads her into admitting the depth and violence of her botano-phile sentiments; (

Janet: And so it's Batman's fault you lead a life of crime?
Poison Ivy: He should have let me bump off Harvey Dent. We'd all have been better off. Wouldn't we, Harv?
Two-Face: (Muttering while flipping his coin) Why you rotten little...
janet: lets say the judge , janet takes joker's flower from his lapelle & she starts to pluck the petals from the flower which starting make ivy very mad attacks janet, croc had to remove her from the court room till she cooled down)
Batman urges her to keep the farce going, while elsewhere the police follow the clues he has left. In her closing argument, Janet admits she was wrong: without Batman, the rogues would have turned out exactly the same way; in truth, they created him, not vice-versa. To her own astonishment, the jury feels it has no choice but to find Batman not guilty. Joker congratulates Janet, then merrily declares that they're going to execute them both anyway, being the rotten scum they are. Batman is dragged into one of the treatment rooms and strapped to the electroshock couch. Before the switch is thrown, Joker, who has swapped his judge's robes for a priest's cassock & said in a (bad Irish accent) And now the final confession, the secret you've kept hidden for so many years
, begins to unmask Batman. Just then, Janet remembers a batarang Batman left from an earlier encounter with the Dark Knight , and throws it at the ceiling light, plunging the room into darkness. The moment's confusion is all Batman needs to break them out. (

Two-Face: Everyone spread out! Don't let him get away!
Batman: (from darkness) Who says I'm leaving?

Two-Face: Nobody panic!
(Everyone turns to find Harley Quinn dangling from the ceiling, strapped in Batman's straitjacket)
Joker: OK... start panicking! )

As they make their way to the exit, the police storm in and hold the mob at bay. Joker pursues them outside, but is subdued after a brief fight.
As the new day dawns, Janet makes her peace with Batman, as they agree that what they both want most is a city that doesn't need him.